fix: Cannot mark as read messages in communities (#18029)
* fix: Cannot mark as read messages in communities * rename messenger-response to _messenger-response
This commit is contained in:
parent
3fee21c73a
commit
8ff67bf344
|
@ -76,9 +76,9 @@
|
||||||
|
|
||||||
(rf/defn handle-mark-all-read-in-community-successful
|
(rf/defn handle-mark-all-read-in-community-successful
|
||||||
{:events [::mark-all-read-in-community-successful]}
|
{:events [::mark-all-read-in-community-successful]}
|
||||||
[{:keys [db] :as cofx} chat-ids]
|
[{:keys [db] :as cofx} {:keys [chats] :as _messenger-response}]
|
||||||
(rf/merge cofx
|
(rf/merge cofx
|
||||||
{:db (reduce mark-chat-all-read db chat-ids)
|
{:db (reduce mark-chat-all-read db (map :id chats))
|
||||||
:dispatch [:activity-center.notifications/fetch-unread-count]}))
|
:dispatch [:activity-center.notifications/fetch-unread-count]}))
|
||||||
|
|
||||||
(rf/defn handle-mark-all-read
|
(rf/defn handle-mark-all-read
|
||||||
|
|
Loading…
Reference in New Issue