fix: Unread notificaitons on startup
This commit is contained in:
@@ -130,11 +130,15 @@ export function calculateUnreadForRoom(
|
||||
|
||||
const channelId = resolveMessageChannelId(message);
|
||||
|
||||
if (!(channelId in channelCounts)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (message.timestamp <= getChannelLastReadAt(settings, room.id, channelId)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
channelCounts[channelId] = (channelCounts[channelId] ?? 0) + 1;
|
||||
channelCounts[channelId] += 1;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user