summary refs log tree commit diff
path: root/synapse/config/push.py
diff options
context:
space:
mode:
authorPatrick Cloke <patrickc@matrix.org>2020-12-02 08:40:21 -0500
committerPatrick Cloke <patrickc@matrix.org>2020-12-02 08:40:21 -0500
commit16744644f665991eb7b6a41e8c16e71ccdb71709 (patch)
tree8c607ab32dc9881a2c7c71e5632b71557e1999e1 /synapse/config/push.py
parentMerge remote-tracking branch 'origin/develop' into matrix-org-hotfixes (diff)
parentFix a regression when grandfathering SAML users. (#8855) (diff)
downloadsynapse-16744644f665991eb7b6a41e8c16e71ccdb71709.tar.xz
Merge branch 'release-v1.24.0' of github.com:matrix-org/synapse into matrix-org-hotfixes
Diffstat (limited to 'synapse/config/push.py')
-rw-r--r--synapse/config/push.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/synapse/config/push.py b/synapse/config/push.py

index a71baac89c..3adbfb73e6 100644 --- a/synapse/config/push.py +++ b/synapse/config/push.py
@@ -23,6 +23,9 @@ class PushConfig(Config): def read_config(self, config, **kwargs): push_config = config.get("push") or {} self.push_include_content = push_config.get("include_content", True) + self.push_group_unread_count_by_room = push_config.get( + "group_unread_count_by_room", True + ) pusher_instances = config.get("pusher_instances") or [] self.pusher_shard_config = ShardedWorkerHandlingConfig(pusher_instances) @@ -68,4 +71,14 @@ class PushConfig(Config): # include the event ID and room ID in push notification payloads. # #include_content: false + + # When a push notification is received, an unread count is also sent. + # This number can either be calculated as the number of unread messages + # for the user, or the number of *rooms* the user has unread messages in. + # + # The default value is "true", meaning push clients will see the number of + # rooms with unread messages in them. Uncomment to instead send the number + # of unread messages. + # + #group_unread_count_by_room: false """