Hide deleted messages in activity center
Signed-off-by: Brian Sztamfater <brian@status.im>
This commit is contained in:
parent
2882085d2e
commit
5cd57254c9
|
@ -216,7 +216,8 @@
|
|||
(let [mcids (message-ids->message-id-chat-id-map db removed-messages)]
|
||||
{:db (reduce (fn [acc current]
|
||||
(update-in acc [:messages (:chat-id current)] dissoc (:message-id current)))
|
||||
db mcids)}))
|
||||
db mcids)
|
||||
:dispatch [:get-activity-center-notifications]}))
|
||||
|
||||
(comment
|
||||
(handle-removed-messages
|
||||
|
|
|
@ -1833,12 +1833,13 @@
|
|||
:<- [:activity.center/notifications]
|
||||
:<- [::chats]
|
||||
(fn [[{:keys [notifications]} chats]]
|
||||
(let [supported-notifications (filter (fn [{:keys [type chat-id]}]
|
||||
(let [supported-notifications (filter (fn [{:keys [type chat-id last-message]}]
|
||||
(and
|
||||
(or (= constants/activity-center-notification-type-mention type)
|
||||
(= constants/activity-center-notification-type-one-to-one-chat type)
|
||||
(or (and (= constants/activity-center-notification-type-one-to-one-chat type)
|
||||
(not (nil? last-message)))
|
||||
(= constants/activity-center-notification-type-private-group-chat type)
|
||||
(= constants/activity-center-notification-type-reply type))
|
||||
(= constants/activity-center-notification-type-reply type)
|
||||
(= constants/activity-center-notification-type-mention type))
|
||||
(get chats chat-id))) notifications)]
|
||||
(group-notifications-by-date (map #(assoc % :timestamp (or (:timestamp %) (:timestamp (or (:message %) (:last-message %))))) supported-notifications)))))
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
"_comment": "DO NOT EDIT THIS FILE BY HAND. USE 'scripts/update-status-go.sh <tag>' instead",
|
||||
"owner": "status-im",
|
||||
"repo": "status-go",
|
||||
"version": "v0.83.16",
|
||||
"commit-sha1": "ab08042f214bb4473eb677949643b18e46824a15",
|
||||
"src-sha256": "0cas8fmllqbkllicypwbjjpdjn7jp3asl4jzwrnr3y8c5y9mbxy0"
|
||||
"version": "v0.83.18",
|
||||
"commit-sha1": "0e54d04e67fee94276b69a9b20338cf4e7624cc5",
|
||||
"src-sha256": "091g3xqsswvfi58jnr9xcwx8xhzcch7d5yky00gjxmw70hyxwigw"
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue