forked from AkkomaGang/akkoma-fe
Merge branch 'fix-notifs' into 'develop'
unfuck notifications Closes #356 See merge request pleroma/pleroma-fe!583
This commit is contained in:
commit
10990e1715
1 changed files with 1 additions and 1 deletions
|
@ -296,7 +296,7 @@ const addNewNotifications = (state, { dispatch, notifications, older, visibleNot
|
||||||
notifObj.image = action.attachments[0].url
|
notifObj.image = action.attachments[0].url
|
||||||
}
|
}
|
||||||
|
|
||||||
if (notification.fresh && !state.notifications.desktopNotificationSilence && visibleNotificationTypes.includes(notification.ntype)) {
|
if (!notification.seen && !state.notifications.desktopNotificationSilence && visibleNotificationTypes.includes(notification.type)) {
|
||||||
let notification = new window.Notification(title, notifObj)
|
let notification = 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