diff --git a/internal_packages/notifications/lib/notifications-store.coffee b/internal_packages/notifications/lib/notifications-store.coffee index 2973be6d9..8db3aef03 100644 --- a/internal_packages/notifications/lib/notifications-store.coffee +++ b/internal_packages/notifications/lib/notifications-store.coffee @@ -47,7 +47,9 @@ class NotificationStore extends NylasStore @listenTo Actions.postNotification, (data) => @_postNotification(new Notification(data)) @listenTo Actions.dismissNotificationsMatching, (criteria) => - @_notifications = _.reject @_notifications, (n) -> _.isMatch(n, criteria) + for tag, notif of @_notifications + if _.isMatch(notif, criteria) + delete @_notifications[tag] @trigger() ######### PUBLIC #######################################################