Fetch unread notification count only for supported notification types (#14923)
* Fetch unread notification count only for supported notification types
This commit is contained in:
parent
b8eab0c328
commit
9ded9da7e3
|
@ -366,7 +366,7 @@
|
|||
{:events [:activity-center.notifications/fetch-unread-count]}
|
||||
[_]
|
||||
{:json-rpc/call [{:method "wakuext_unreadAndAcceptedActivityCenterNotificationsCount"
|
||||
:params []
|
||||
:params [types/all-supported]
|
||||
:on-success #(rf/dispatch [:activity-center.notifications/fetch-unread-count-success
|
||||
%])
|
||||
:on-error #()}]})
|
||||
|
|
|
@ -9,6 +9,15 @@
|
|||
(def ^:const admin 8)
|
||||
(def ^:const contact-verification 10)
|
||||
|
||||
(def ^:const all-supported
|
||||
#{one-to-one-chat
|
||||
private-group-chat
|
||||
mention
|
||||
reply
|
||||
contact-request
|
||||
admin
|
||||
contact-verification})
|
||||
|
||||
;; TODO: Replace with correct enum values once status-go implements them.
|
||||
(def ^:const tx 66612)
|
||||
(def ^:const system 66614)
|
||||
|
|
Loading…
Reference in New Issue