diff options
| author | Henry Jameson <me@hjkos.com> | 2019-02-14 21:43:32 +0200 |
|---|---|---|
| committer | Henry Jameson <me@hjkos.com> | 2019-02-14 21:43:32 +0200 |
| commit | f41341b79bba318c85dd62dc8f14c15a8fe2f5a3 (patch) | |
| tree | f5ddaf4fbb7ac01c06dbaa23fbd9308911c76c4c /src | |
| parent | 8625a612cdf99c9e1378073d6526d49cd5266767 (diff) | |
fix notifications
Diffstat (limited to 'src')
| -rw-r--r-- | src/modules/statuses.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/modules/statuses.js b/src/modules/statuses.js index 56619455..46117fd7 100644 --- a/src/modules/statuses.js +++ b/src/modules/statuses.js @@ -296,7 +296,7 @@ const addNewNotifications = (state, { dispatch, notifications, older, visibleNot 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) // Chrome is known for not closing notifications automatically // according to MDN, anyway. |
