mirror of
https://github.com/zulip/zulip.git
synced 2025-11-04 05:53:43 +00:00
When the current user was part of a group through both subgroup and a direct membership, leaving the group would only remove the direct membership. But since the user is part of the group through subgroup, `is_user_in_group` will be true inside `handle_member_edit_event` which should only be triggered when a user is on another group edit panel and they join a group via the left panel plus button. In that case, the edit panel of the newly joined group should open. Instead of handling this on event, where we could not tell who triggered the event, the current user or someone else, we now handle this in the success callback of `add_or_remove_from_group`. Fixes https://chat.zulip.org/#narrow/channel/9-issues/topic/group.20panel.20error/near/1987891