summary refs log tree commit diff
path: root/synapse/push/push_tools.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/push/push_tools.py
parentRename dont_push into mark_unread (diff)
downloadsynapse-ef345c5a7b544aafa9c37bc2c4f626dfcef529f9.tar.xz
Add a new unread_counter to sync responses
Diffstat (limited to 'synapse/push/push_tools.py')
-rw-r--r--synapse/push/push_tools.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/push/push_tools.py b/synapse/push/push_tools.py

index 5dae4648c0..9f264ca4a4 100644 --- a/synapse/push/push_tools.py +++ b/synapse/push/push_tools.py
@@ -39,7 +39,10 @@ def get_badge_count(store, user_id): ) # return one badge count per conversation, as count per # message is so noisy as to be almost useless - badge += 1 if notifs["notify_count"] else 0 + # We're populating this badge using the unread_count (instead of the + # notify_count) as this badge is the number of missed messages, not the + # number of missed notifications. + badge += 1 if notifs["unread_count"] else 0 return badge