mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2024-12-25 12:39:22 -05:00
Merge pull request #793 from matrix-org/matthew/one-push-badge-per-convo
increment badge count per missed convo, not per msg
This commit is contained in:
commit
6fb51eaf7b
@ -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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user