client_capabilities: Add stream_typing_notifications.

This commit is contained in:
Dinesh
2021-04-18 21:42:35 +05:30
committed by Tim Abbott
parent ceb4b239c4
commit 734d935d4a
8 changed files with 19 additions and 0 deletions

View File

@@ -1092,6 +1092,7 @@ def do_events_register(
user_avatar_url_field_optional = client_capabilities.get(
"user_avatar_url_field_optional", False
)
stream_typing_notifications = client_capabilities.get("stream_typing_notifications", False)
if user_profile.realm.email_address_visibility != Realm.EMAIL_ADDRESS_VISIBILITY_EVERYONE:
# If real email addresses are not available to the user, their
@@ -1111,6 +1112,7 @@ def do_events_register(
all_public_streams,
narrow=narrow,
bulk_message_deletion=bulk_message_deletion,
stream_typing_notifications=stream_typing_notifications,
)
if queue_id is None: