aboutsummaryrefslogtreecommitdiff
path: root/src/services/chat_utils/chat_utils.js
diff options
context:
space:
mode:
authorMaksim Pechnikov <parallel588@gmail.com>2020-09-18 22:04:01 +0300
committerMaksim Pechnikov <parallel588@gmail.com>2020-09-18 22:04:01 +0300
commit3dbc1bedbf7ea7f168548d0766d095dba02a741a (patch)
treeb7dd60bda705acd87adbff194f0263e0f49973c2 /src/services/chat_utils/chat_utils.js
parent947d7cd6f285c7c683b92f79d9d2c08dd2131f5d (diff)
parentb725df6352c27421f0549b6e4c2ceeb0d240919f (diff)
Merge branch 'develop' into feature/import_export_mutes
Diffstat (limited to 'src/services/chat_utils/chat_utils.js')
-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 ab898ced..583438f7 100644
--- a/src/services/chat_utils/chat_utils.js
+++ b/src/services/chat_utils/chat_utils.js
@@ -3,6 +3,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
+ if (store.rootState.users.currentUser.id === chat.lastMessage.account.id) return
const opts = {
tag: chat.lastMessage.id,