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:
frank 2023-12-02 09:05:21 +08:00 committed by GitHub
parent 3fee21c73a
commit 8ff67bf344
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -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