summary refs log tree commit diff
path: root/synapse/handlers/sync.py
diff options
context:
space:
mode:
authorBrendan Abolivier <babolivier@matrix.org>2020-06-10 16:21:16 +0100
committerBrendan Abolivier <babolivier@matrix.org>2020-06-10 16:21:16 +0100
commitef345c5a7b544aafa9c37bc2c4f626dfcef529f9 (patch)
tree75043212228a5c7b49c8e61498e99921928c79d4 /synapse/handlers/sync.py
parentRename dont_push into mark_unread (diff)
downloadsynapse-ef345c5a7b544aafa9c37bc2c4f626dfcef529f9.tar.xz
Add a new unread_counter to sync responses
Diffstat (limited to 'synapse/handlers/sync.py')
-rw-r--r--synapse/handlers/sync.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py
index 6bdb24baff..cec0ca427e 100644
--- a/synapse/handlers/sync.py
+++ b/synapse/handlers/sync.py
@@ -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)