From 1edb4695bbfbb01a351885aac08c13ed8dd8f507 Mon Sep 17 00:00:00 2001 From: Sivert Date: Mon, 12 Oct 2026 22:35:23 +0200 Subject: [PATCH] fix(chat): join and leave lines are quiet System lines (players joining and leaving a match channel) played the message sound, popped a preview and counted as unread. They now only show in the thread. Co-Authored-By: Claude Opus 5.5 --- client/src/components/chat/chatStore.ts | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/client/src/components/chat/chatStore.ts b/client/src/components/chat/chatStore.ts index 5f7efdea1..52ebf46f9 100644 --- a/client/src/components/chat/chatStore.ts +++ b/client/src/components/chat/chatStore.ts @@ -189,6 +189,12 @@ function receive(message: ChatMessage) { } const reading = state.open && state.active === message.channel; if (mine) return; + // Joins, leaves and other system lines show in the thread, quietly: no + // sound, no preview, no unread count (they made the chat ping all match). + if (message.senderKind === 'system') { + if (reading) markRead(message.channel); + return; + } if (reading) { markRead(message.channel); return;