feat(notifications): honor chat mute in web realtime alerts
Some checks failed
CI / test (push) Failing after 1m30s
Some checks failed
CI / test (push) Failing after 1m30s
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user