logo

pleroma-fe

My custom branche(s) on git.pleroma.social/pleroma/pleroma-fe
commit: 8a0f280cd8e7e7a8126ce5e7c6637fd15a78e390
parent a73b09c73202117ffa3fecf7a9185981d6696912
Author: Shpuld Shpludson <shp@cock.li>
Date:   Mon,  7 Sep 2020 08:01:06 +0000

Merge branch 'chat-desktop-notifications-fix' into 'develop'

Do not show desktop notifications for your own chat messages

Closes #951

See merge request pleroma/pleroma-fe!1225

Diffstat:

Msrc/services/chat_utils/chat_utils.js1+
1 file changed, 1 insertion(+), 0 deletions(-)

diff --git 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,