diff options
author | Matthew Hodgson <matthew@matrix.org> | 2016-05-18 11:53:25 +0100 |
---|---|---|
committer | Matthew Hodgson <matthew@matrix.org> | 2016-05-18 11:53:25 +0100 |
commit | e837df6adb3a3b103b5fbc4f55e110af3a2fcc71 (patch) | |
tree | f21b5a18a12ec36d18b03246fbc42c342cac0156 /synapse/push/push_tools.py | |
parent | tweak text (diff) | |
download | synapse-e837df6adb3a3b103b5fbc4f55e110af3a2fcc71.tar.xz |
increment badge count per missed convo, not per msg
Diffstat (limited to '')
-rw-r--r-- | synapse/push/push_tools.py | 4 |
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) |