Fix error replies activity center while not implemented

Signed-off-by: Shivek Khurana <shivek@status.im>
This commit is contained in:
Brian Sztamfater 2021-07-09 14:39:30 -03:00 committed by Shivek Khurana
parent dd4c5f778e
commit b0457f594b
No known key found for this signature in database
GPG Key ID: 9BEB56E6E62968C7
1 changed files with 5 additions and 1 deletions

View File

@ -1753,7 +1753,11 @@
:activity.center/notifications-grouped-by-date
:<- [:activity.center/notifications]
(fn [{:keys [notifications]}]
(group-notifications-by-date (map #(assoc % :timestamp (or (:timestamp %) (:timestamp (or (:message %) (:last-message %))))) notifications))))
(let [supported-notifications (filter (fn [{:keys [type]}]
(or (= constants/activity-center-notification-type-mention type)
(= constants/activity-center-notification-type-one-to-one-chat type)
(= constants/activity-center-notification-type-private-group-chat type))) notifications)]
(group-notifications-by-date (map #(assoc % :timestamp (or (:timestamp %) (:timestamp (or (:message %) (:last-message %))))) supported-notifications)))))
;;WALLET TRANSACTIONS ==================================================================================================