diff --git a/src/util/notifications.ts b/src/util/notifications.ts index 01983e30f..6cd0b2ed6 100644 --- a/src/util/notifications.ts +++ b/src/util/notifications.ts @@ -28,6 +28,7 @@ import { selectChat, selectChatMessage, selectCurrentMessageList, + selectIsChatWithSelf, selectNotifyExceptions, selectNotifySettings, selectTopicFromMessage, @@ -299,7 +300,9 @@ function checkIfShouldNotify(chat: ApiChat, message: Partial) { if (!areSettingsLoaded) return false; const global = getGlobal(); const isMuted = selectIsChatMuted(chat, selectNotifySettings(global), selectNotifyExceptions(global)); - if ((isMuted && !message.isMentioned) || chat.isNotJoined || !chat.isListed) { + const shouldNotifyAboutMessage = !message.content?.action?.phoneCall; + if (isMuted || !shouldNotifyAboutMessage + || chat.isNotJoined || !chat.isListed || selectIsChatWithSelf(global, chat.id)) { return false; } // On touch devices show notifications when chat is not active