feat: add markUnread store action and WS handler

This commit is contained in:
Jannis Braun
2026-03-20 22:13:47 +01:00
parent 2e26f98246
commit 896cb77b5c
2 changed files with 41 additions and 0 deletions
+6
View File
@@ -571,6 +571,12 @@ function handleEvent(origin: string, event: ServerEvent): void {
break;
}
case 'mark_unread': {
const { onMarkUnread } = useChatStore.getState();
onMarkUnread(event.channelId, event.messageId);
break;
}
// ─── DM call events (all origins) ──────────────────────────────────────
case 'dm_call_incoming': {