We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29f80d2 commit 62783d6Copy full SHA for 62783d6
2 files changed
src/status_im/contexts/shell/activity_center/view.cljs
@@ -68,7 +68,7 @@
68
69
(defn view
70
[]
71
- (let [notifications (rf/sub [:activity-center/notifications])
+ (let [notifications (rf/sub [:activity-center/supported-notifications])
72
73
;; We globally control the active swipeable for all notifications
74
;; because when a swipe left/right gesture initiates, the previously
src/status_im/subs/activity_center.cljs
@@ -9,6 +9,13 @@
9
(fn [activity-center]
10
(:notifications activity-center)))
11
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
+
19
(re-frame/reg-sub
20
:activity-center/unread-counts-by-type
21
:<- [:activity-center]
0 commit comments