diff options
author | Patrick Cloke <patrickc@matrix.org> | 2022-07-28 14:55:38 -0400 |
---|---|---|
committer | Patrick Cloke <patrickc@matrix.org> | 2022-08-05 08:18:08 -0400 |
commit | d56296aa57b3ffb8f687c5cdcbaabd1a5e00c4f2 (patch) | |
tree | 4e76d953923ff9ddd99c2a97090a9252928acee0 /synapse/handlers/sync.py | |
parent | Add an experimental config option. (diff) | |
download | synapse-d56296aa57b3ffb8f687c5cdcbaabd1a5e00c4f2.tar.xz |
Add a sync flag for unread thread notifications
Diffstat (limited to '')
-rw-r--r-- | synapse/handlers/sync.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py index 25c98e5cf4..2da618e7cb 100644 --- a/synapse/handlers/sync.py +++ b/synapse/handlers/sync.py @@ -2133,8 +2133,11 @@ class SyncHandler: highlight_count = notifs.highlight_count unread_count = notifs.unread_count - # XXX Check the sync configuration. - if self._msc3773_enabled: + # Check the sync configuration. + if ( + self._msc3773_enabled + and sync_config.filter_collection.unread_thread_notifications() + ): # And add info for each thread. room_sync.unread_thread_notifications = { thread_id: { |