diff options
| author | eugenijm <eugenijm@protonmail.com> | 2020-09-04 23:11:10 +0300 |
|---|---|---|
| committer | eugenijm <eugenijm@protonmail.com> | 2020-09-04 23:11:10 +0300 |
| commit | b8afdb4c025e3d83f60fa3fc019390b75bff9eb7 (patch) | |
| tree | 592fa72bcfce5d2c9775cfcd59c9074eab1493d0 /src | |
| parent | a73b09c73202117ffa3fecf7a9185981d6696912 (diff) | |
Do not show desktop notifications for your own chat messages
Diffstat (limited to 'src')
| -rw-r--r-- | src/services/chat_utils/chat_utils.js | 1 |
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, |
