mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
user_groups: Do not include deactivated users in members list.
This commit updates code to not include deactivated users in
members list in the user groups object sent in "/register"
and "GET /user_groups" response and also in the response
returned by endpoint like "GET /user_groups/{group_id}/members".
The events code is also update to handle this -
- We expect clients to update the members list on receiving
"realm_user/update" event on deactivation. But for guests
who cannot access the user, "user_group/remove_members"
event is sent to update the group members list on deactivation.
- "user_group/add_members" event is sent to all the users on
reactivating the user.
This commit is contained in:
@@ -24,6 +24,13 @@ format used by the Zulip server that they are interacting with.
|
||||
|
||||
* [`GET /events`](/api/get-events): User reactivation event is not sent
|
||||
to users who cannot access the reactivated user anymore.
|
||||
* [`GET /events`](/api/get-events): `add_members` and `remove_members`
|
||||
events with `user_group` type can now also be sent when reactivating
|
||||
and deactivating a user respectively.
|
||||
* [`POST /register`](/api/register-queue), [`GET /user_groups`](/api/get-user-groups),
|
||||
[`GET /user_groups/{user_group_id}/members/{user_id}`](/api/get-is-user-group-member),
|
||||
[`GET /user_groups/{user_group_id}/members`](/api/get-user-group-members):
|
||||
Deactivated users are not considered as members of a user group anymore.
|
||||
|
||||
**Feature level 302**
|
||||
|
||||
|
||||
Reference in New Issue
Block a user