Skip to content

Commit 4610920

Browse files
committed
fix: remove unsupported notifications from ac notification data
1 parent e50c49b commit 4610920

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

src/status_im/contexts/shell/activity_center/view.cljs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868

6969
(defn view
7070
[]
71-
(let [notifications (rf/sub [:activity-center/notifications])
71+
(let [notifications (rf/sub [:activity-center/supported-notifications])
7272

7373
;; We globally control the active swipeable for all notifications
7474
;; because when a swipe left/right gesture initiates, the previously

src/status_im/subs/activity_center.cljs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@
99
(fn [activity-center]
1010
(:notifications activity-center)))
1111

12+
(re-frame/reg-sub
13+
:activity-center/supported-notifications
14+
:<- [:activity-center/notifications]
15+
(fn [notifications]
16+
(->> notifications
17+
(filter #(types/all-supported (:type %))))))
18+
1219
(re-frame/reg-sub
1320
:activity-center/unread-counts-by-type
1421
:<- [:activity-center]

0 commit comments

Comments
 (0)