summary refs log tree commit diff
path: root/synapse/config/push.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-12-31 17:19:14 +0000
committerAndrew Morgan <andrew@amorgan.xyz>2020-12-31 17:19:14 +0000
commita839d0f32df51b18908c3f13c89cd10d478494a6 (patch)
treeb81447dbeeb86e75f46f644bb3f9c574d563f640 /synapse/config/push.py
parentMerge commit 'a090b8620' into anoa/dinsic_release_1_23_1 (diff)
parentFix broken testcase (#8851) (diff)
downloadsynapse-a839d0f32df51b18908c3f13c89cd10d478494a6.tar.xz
Merge commit '09ac0569f' into anoa/dinsic_release_1_23_1
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 """