summary refs log tree commit diff
path: root/synapse/push/push_tools.py
diff options
context:
space:
mode:
authorAndrew Morgan <andrew@amorgan.xyz>2020-08-03 16:23:41 -0700
committerAndrew Morgan <andrew@amorgan.xyz>2020-08-03 16:23:41 -0700
commit5662b85fc12b673c2f37e76971b01cc09e0aa24a (patch)
treee241ec1740a85176d3cb86fed0004ee7c66b0d1a /synapse/push/push_tools.py
parentMerge commit '6418b0379' into dinsic (diff)
parentFix unread counts in sync (diff)
downloadsynapse-5662b85fc12b673c2f37e76971b01cc09e0aa24a.tar.xz
Merge commit '5a5cf6460' into dinsic
* commit '5a5cf6460':
  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