mirror of
https://mau.dev/maunium/synapse.git
synced 2024-11-16 06:51:46 +01:00
increment badge count per missed convo, not per msg
This commit is contained in:
parent
e501e9ecb2
commit
e837df6adb
1 changed files with 3 additions and 1 deletions
|
@ -38,7 +38,9 @@ def get_badge_count(store, user_id):
|
||||||
r.room_id, user_id, last_unread_event_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)
|
defer.returnValue(badge)
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue