register: Add client capability to not receive unknown users data.

This commit adds a new client capability to decide whether the
client needs unknown users data or not.
This commit is contained in:
Sahil Batra
2023-10-24 23:17:39 +05:30
committed by Tim Abbott
parent 3697df1971
commit 965869d3f8
11 changed files with 144 additions and 10 deletions

View File

@@ -20,6 +20,23 @@ format used by the Zulip server that they are interacting with.
## Changes in Zulip 8.0
**Feature level 232**
* [`POST /register`](/api/register-queue): Added a new
`user_list_incomplete` [client
capability](/api/register-queue#parameter-client_capabilities)
controlling whether `realm_users` contains "Unknown user"
placeholder objects for users that the current user cannot access
due to a `can_access_all_users_group` policy.
* [`GET /events`](/api/get-events): The new `user_list_incomplete`
[client
capability](/api/register-queue#parameter-client_capabilities)
controls whether to send `realm_user` events with `op: "add"`
containing "Unknown user" placeholder objects to clients when a new
user is created that the client does not have access to due to a
`can_access_all_users_group` policy.
**Feature level 231**
* [`POST /register`](/api/register-queue):