fix non-mention notifs
This commit is contained in:
parent
b5c1d074f8
commit
83e5ee5494
1 changed files with 12 additions and 7 deletions
|
@ -381,13 +381,18 @@ const addNewNotifications = (state, { dispatch, notifications, older, visibleNot
|
||||||
notifObj.image = status.attachments[0].url
|
notifObj.image = status.attachments[0].url
|
||||||
}
|
}
|
||||||
|
|
||||||
if (
|
const reasonsToMuteNotif = (
|
||||||
!notification.seen &&
|
notification.seen ||
|
||||||
!state.notifications.desktopNotificationSilence &&
|
state.notifications.desktopNotificationSilence ||
|
||||||
visibleNotificationTypes.includes(notification.type) &&
|
!visibleNotificationTypes.includes(notification.type) ||
|
||||||
!status.muted &&
|
(
|
||||||
muteWordHits(status, rootGetters.mergedConfig.muteWords).length === 0
|
status && (
|
||||||
) {
|
status.muted ||
|
||||||
|
muteWordHits(status, rootGetters.mergedConfig.muteWords).length === 0
|
||||||
|
)
|
||||||
|
)
|
||||||
|
)
|
||||||
|
if (!reasonsToMuteNotif) {
|
||||||
let desktopNotification = new window.Notification(title, notifObj)
|
let desktopNotification = new window.Notification(title, notifObj)
|
||||||
// Chrome is known for not closing notifications automatically
|
// Chrome is known for not closing notifications automatically
|
||||||
// according to MDN, anyway.
|
// according to MDN, anyway.
|
||||||
|
|
Loading…
Reference in a new issue