user_group_edit: Fix update_group function.

This commit fixes the mistakes made during rebase in
96abf2501a and 9bbd6a7316.
This commit is contained in:
Sahil Batra 2024-10-14 20:16:51 +05:30 committed by Tim Abbott
parent 6bc8651d22
commit 6007630164
1 changed files with 2 additions and 2 deletions

View File

@ -658,7 +658,7 @@ export function update_group(event) {
if (event.data.can_mention_group !== undefined) { if (event.data.can_mention_group !== undefined) {
sync_group_permission_setting("can_mention_group", group); sync_group_permission_setting("can_mention_group", group);
} }
if (event.data.can_manage_group !== undefined) { if (event.data.can_add_members_group !== undefined) {
sync_group_permission_setting("can_add_members_group", group); sync_group_permission_setting("can_add_members_group", group);
update_group_management_ui(); update_group_management_ui();
} }
@ -667,7 +667,7 @@ export function update_group(event) {
update_group_management_ui(); update_group_management_ui();
} }
if (event.data.can_join_group !== undefined) { if (event.data.can_join_group !== undefined) {
sync_group_permission_setting("can_mention_group", group); sync_group_permission_setting("can_join_group", group);
update_group_membership_button(group.id); update_group_membership_button(group.id);
} }
} }