feat(notifications): honor chat mute in web realtime alerts
Some checks failed
CI / test (push) Failing after 1m30s

This commit is contained in:
2026-03-08 20:37:54 +03:00
parent 6c039ae94f
commit 418c9e6044
7 changed files with 41 additions and 1 deletions

View File

@@ -433,6 +433,9 @@ function maybeShowBrowserNotification(
}
const chat = useChatStore.getState().chats.find((item) => item.id === chatId);
const isMention = hasMentionForUser(message.text, currentUsername);
if (!isMention && chat?.muted) {
return;
}
if (!isMention && chat?.type === "private" && !prefs.privateNotifications) {
return;
}