Skip to content

Commit

Permalink
Added an extra ui check if all join mod is enabled (#5750)
Browse files Browse the repository at this point in the history
  • Loading branch information
farhatahmad authored Mar 12, 2024
1 parent d695a8c commit 43889b2
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,15 @@ export default function RoomSettingsRow({
}) {
const updateAPI = useUpdateAPI();
const checkedValue = useMemo(() => {
if (value === 'true' || value === 'ASK_MODERATOR') {
if (disabled) {
return false;
} if (value === 'true' || value === 'ASK_MODERATOR') {
return true;
} if (value === 'false' || value === 'ALWAYS_ACCEPT') {
return false;
}
return value;
}, [value]);
}, [value, disabled]);

if (config === 'false') {
return null;
Expand Down

1 comment on commit 43889b2

@m2006m
Copy link

@m2006m m2006m commented on 43889b2 Mar 31, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Login via Access Code not working anymore in greenlight release 3.3.1

Please sign in to comment.