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-17 15:44:15 +0100
committerGitHub <noreply@github.com>2020-06-17 15:44:15 +0100
commite35d44c01d4c166f573a4d8d978586d3785e5e77 (patch)
treedf037362238c6a1dd84553430a21928cd166c3d1 /synapse/push/push_tools.py
parentConvert the typing handler to async/await. (#7679) (diff)
parentFix unread counts in sync (diff)
downloadsynapse-e35d44c01d4c166f573a4d8d978586d3785e5e77.tar.xz
Merge pull request #7716 from matrix-org/babolivier/unread_fix
Fix unread counts in sync
Diffstat (limited to 'synapse/push/push_tools.py')
-rw-r--r--synapse/push/push_tools.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/push/push_tools.py b/synapse/push/push_tools.py
index 9f264ca4a4..4ea683fee0 100644
--- a/synapse/push/push_tools.py
+++ b/synapse/push/push_tools.py
@@ -42,7 +42,7 @@ def get_badge_count(store, user_id):
             # 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
+            badge += 1 if notifs.get("unread_count") else 0
     return badge