summary refs log tree commit diff
path: root/synapse/push/push_tools.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2016-05-24 15:02:05 +0100
committerErik Johnston <erik@matrix.org>2016-05-24 16:28:51 +0100
commit4902770e3222c80828a3d8027324687ffd631fb5 (patch)
treef6db4365b4a32a195e579c013a34bd013e7799da /synapse/push/push_tools.py
parentAdd POST /sync API endpoint (diff)
parentChange short circuit path (diff)
downloadsynapse-4902770e3222c80828a3d8027324687ffd631fb5.tar.xz
Merge branch 'erikj/sync_refactor' of github.com:matrix-org/synapse into erikj/paginate_sync
Diffstat (limited to 'synapse/push/push_tools.py')
-rw-r--r--synapse/push/push_tools.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/synapse/push/push_tools.py b/synapse/push/push_tools.py

index e71d01e77d..89a3b5e90a 100644 --- a/synapse/push/push_tools.py +++ b/synapse/push/push_tools.py
@@ -38,7 +38,9 @@ def get_badge_count(store, user_id): r.room_id, user_id, last_unread_event_id ) ) - badge += notifs["notify_count"] + # 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 defer.returnValue(badge)