Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
user_group_edit: Remove deactivated user from system groups as well.
Shubham Padia134f27b7a5f6
diff --git a/web/src/user_group_edit.ts b/web/src/user_group_edit.tsindex 7f229e892db..7c843d575b4 100644--- a/web/src/user_group_edit.ts+++ b/web/src/user_group_edit.ts@@ -1810,7 +1810,7 @@ const throttled_update_empty_left_panel_message = _.throttle(() => {}, 100);export function remove_deactivated_user_from_all_groups(user_id: number): void {- const all_user_groups = user_groups.get_realm_user_groups(true);+ const all_user_groups = user_groups.get_all_realm_user_groups(true, false, true);for (const user_group of all_user_groups) {if (user_groups.is_direct_member_of(user_id, user_group.id)) {