mirror of
https://github.com/styppo/hamstr.git
synced 2024-10-18 13:33:22 +00:00
fix the always-1 chat message badge.
This commit is contained in:
parent
f1fa615dd6
commit
6d1a8b0a4e
@ -29,5 +29,6 @@ export function profileDescription(state) {
|
||||
}
|
||||
|
||||
export function unreadChats(state) {
|
||||
delete state.unreadMessages[state.keys.pub]
|
||||
return Object.values(state.unreadMessages).filter(v => v).length
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user