We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7674cb9 commit 7fcf83dCopy full SHA for 7fcf83d
src/status_im/subs/activity_center.cljs
@@ -9,12 +9,15 @@
9
(fn [activity-center]
10
(:notifications activity-center)))
11
12
+(defn supported-notification?
13
+ [notification]
14
+ (types/all-supported (:type notification)))
15
+
16
(re-frame/reg-sub
17
:activity-center/supported-notifications
18
:<- [:activity-center/notifications]
19
(fn [notifications]
- (->> notifications
- (filter #(types/all-supported (:type %))))))
20
+ (filter supported-notification? notifications)))
21
22
23
:activity-center/unread-counts-by-type
0 commit comments