deletion: Add support for bulk message deletion events.

This is designed to have no user-facing change unless the client
declares bulk_message_deletion in its client_capabilities.

Clients that do so will receive a single bulk event for bulk deletions
of messages within a single conversation (topic or PM thread).

Backend implementation of #15285.
This commit is contained in:
Aman Agrawal
2020-06-10 17:17:08 +05:30
committed by Tim Abbott
parent 21ac1fb32c
commit cda7b2f539
11 changed files with 124 additions and 63 deletions

View File

@@ -191,6 +191,7 @@ def home_real(request: HttpRequest) -> HttpResponse:
client_capabilities = {
'notification_settings_null': True,
'bulk_message_deletion': False,
}
register_ret = do_events_register(user_profile, request.client,