Boo: Fix count not going down
This commit is contained in:
parent
f341350bd6
commit
e8209d1fc7
1 changed files with 5 additions and 0 deletions
|
|
@ -43,6 +43,11 @@ export function Boo({ channel }: { channel: Channel; }) {
|
|||
});
|
||||
}, [lastMessage, currentUserId]);
|
||||
|
||||
if (countedChannels.has(id) && state.isCurrentUser) {
|
||||
countedChannels.delete(id);
|
||||
booCount--;
|
||||
}
|
||||
|
||||
if (!state.isDataProcessed || !currentUserId || !lastMessage || state.isCurrentUser) return null;
|
||||
|
||||
if (!countedChannels.has(id)) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue