From 6007630164fb0500affc9c7eb6ad0ee704408aa8 Mon Sep 17 00:00:00 2001 From: Sahil Batra Date: Mon, 14 Oct 2024 20:16:51 +0530 Subject: [PATCH] user_group_edit: Fix update_group function. This commit fixes the mistakes made during rebase in 96abf2501a4 and 9bbd6a73167. --- web/src/user_group_edit.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/src/user_group_edit.js b/web/src/user_group_edit.js index bbfb4d1dc3..37d8db9382 100644 --- a/web/src/user_group_edit.js +++ b/web/src/user_group_edit.js @@ -658,7 +658,7 @@ export function update_group(event) { if (event.data.can_mention_group !== undefined) { 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); update_group_management_ui(); } @@ -667,7 +667,7 @@ export function update_group(event) { update_group_management_ui(); } 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); } }