This commit is contained in:
Henry Jameson 2019-12-12 18:41:53 +02:00
parent 7390651b37
commit e7e12b3c1e

View file

@ -352,6 +352,7 @@ const addNewNotifications = (state, { dispatch, notifications, older, visibleNot
notifObj.image = status.attachments[0].url
}
console.log(notification, state.notifications, visibleNotificationTypes)
if (!notification.seen && !state.notifications.desktopNotificationSilence && visibleNotificationTypes.includes(notification.type)) {
let notification = new window.Notification(title, notifObj)
// Chrome is known for not closing notifications automatically