fix: Unread notificaitons on startup

This commit is contained in:
2026-06-04 18:18:22 +02:00
parent 161f57f52e
commit 6d021a296b
6 changed files with 227 additions and 6 deletions

View File

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