mirror of
https://github.com/zulip/zulip.git
synced 2025-11-02 13:03:29 +00:00
events: Add "user_settings_object" to client_capabilities.
This commit adds "user_settings_object" field to client_capabilities which will be used to determine if the client needs 'update_display_settings' and 'update_global_notifications' event.
This commit is contained in:
@@ -1217,6 +1217,7 @@ def do_events_register(
|
||||
"user_avatar_url_field_optional", False
|
||||
)
|
||||
stream_typing_notifications = client_capabilities.get("stream_typing_notifications", False)
|
||||
user_settings_object = client_capabilities.get("user_settings_object", False)
|
||||
|
||||
if user_profile.realm.email_address_visibility != Realm.EMAIL_ADDRESS_VISIBILITY_EVERYONE:
|
||||
# If real email addresses are not available to the user, their
|
||||
@@ -1248,6 +1249,7 @@ def do_events_register(
|
||||
narrow=narrow,
|
||||
bulk_message_deletion=bulk_message_deletion,
|
||||
stream_typing_notifications=stream_typing_notifications,
|
||||
user_settings_object=user_settings_object,
|
||||
)
|
||||
|
||||
if queue_id is None:
|
||||
|
||||
Reference in New Issue
Block a user