aboutsummaryrefslogtreecommitdiff
path: root/src/services/chat_utils
diff options
context:
space:
mode:
Diffstat (limited to 'src/services/chat_utils')
-rw-r--r--src/services/chat_utils/chat_utils.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/services/chat_utils/chat_utils.js b/src/services/chat_utils/chat_utils.js
index 7264ebcc..ab898ced 100644
--- a/src/services/chat_utils/chat_utils.js
+++ b/src/services/chat_utils/chat_utils.js
@@ -2,6 +2,7 @@ import { showDesktopNotification } from '../desktop_notification_utils/desktop_n
export const maybeShowChatNotification = (store, chat) => {
if (!chat.lastMessage) return
+ if (store.rootState.chats.currentChatId === chat.id && !document.hidden) return
const opts = {
tag: chat.lastMessage.id,