Boo: Fix count not going down

This commit is contained in:
thororen1234 2025-11-03 08:20:40 -05:00
parent f341350bd6
commit e8209d1fc7
No known key found for this signature in database

View file

@ -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)) {