Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/status_im/contexts/shell/activity_center/view.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@

(defn view
[]
(let [notifications (rf/sub [:activity-center/notifications])
(let [notifications (rf/sub [:activity-center/supported-notifications])

;; We globally control the active swipeable for all notifications
;; because when a swipe left/right gesture initiates, the previously
Expand Down
10 changes: 10 additions & 0 deletions src/status_im/subs/activity_center.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,16 @@
(fn [activity-center]
(:notifications activity-center)))

(defn supported-notification?
[notification]
(types/all-supported (:type notification)))

(re-frame/reg-sub
:activity-center/supported-notifications
:<- [:activity-center/notifications]
(fn [notifications]
(filter supported-notification? notifications)))

(re-frame/reg-sub
:activity-center/unread-counts-by-type
:<- [:activity-center]
Expand Down