diff options
author | Brendan Abolivier <babolivier@matrix.org> | 2020-06-17 10:58:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-17 10:58:32 +0100 |
commit | 46613aaf794e11a23e22bcf325ff8b3c41e482f2 (patch) | |
tree | 88acf7730dfe96881809fc5985174ab1790aa596 /synapse/handlers/sync.py | |
parent | fix broken link in sample config (#7712) (diff) | |
parent | Merge branch 'develop' into babolivier/mark_unread (diff) | |
download | synapse-46613aaf794e11a23e22bcf325ff8b3c41e482f2.tar.xz |
Implement unread counter (MSC2625) (#7673)
Implementation of https://github.com/matrix-org/matrix-doc/pull/2625
Diffstat (limited to 'synapse/handlers/sync.py')
-rw-r--r-- | synapse/handlers/sync.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py index 4c7524493e..0b82aa72a6 100644 --- a/synapse/handlers/sync.py +++ b/synapse/handlers/sync.py @@ -1893,6 +1893,9 @@ class SyncHandler(object): if notifs is not None: unread_notifications["notification_count"] = notifs["notify_count"] unread_notifications["highlight_count"] = notifs["highlight_count"] + unread_notifications["org.matrix.msc2625.unread_count"] = notifs[ + "unread_count" + ] sync_result_builder.joined.append(room_sync) |