Skip to content

Commit

Permalink
fix: Cannot mark as read messages in communities (#18029)
Browse files Browse the repository at this point in the history
* fix: Cannot mark as read messages in communities

* rename messenger-response to _messenger-response
  • Loading branch information
qfrank authored Dec 2, 2023
1 parent 3fee21c commit 8ff67bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/status_im/chat/models/loading.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,9 @@

(rf/defn handle-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
{: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]}))

(rf/defn handle-mark-all-read
Expand Down

0 comments on commit 8ff67bf

Please sign in to comment.