mirror of
https://git.pleroma.social/sjw/pleroma-fe.git
synced 2024-12-24 01:45:33 +01:00
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
This commit is contained in:
commit
8a0f280cd8
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user