Add a new unread_counter to sync responses

This commit is contained in:
Brendan Abolivier 2020-06-10 16:21:16 +01:00
parent 6f6a4bfc07
commit ef345c5a7b
No known key found for this signature in database
GPG key ID: 1E015C145F1916CD
3 changed files with 28 additions and 3 deletions

View file

@ -1895,6 +1895,7 @@ class SyncHandler(object):
if notifs is not None:
unread_notifications["notification_count"] = notifs["notify_count"]
unread_notifications["highlight_count"] = notifs["highlight_count"]
unread_notifications["unread_count"] = notifs["unread_count"]
sync_result_builder.joined.append(room_sync)