From 8ff67bf344ef0c958df2e7ac7f1b71484428f1b9 Mon Sep 17 00:00:00 2001 From: frank Date: Sat, 2 Dec 2023 09:05:21 +0800 Subject: [PATCH] fix: Cannot mark as read messages in communities (#18029) * fix: Cannot mark as read messages in communities * rename messenger-response to _messenger-response --- src/status_im/chat/models/loading.cljs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/status_im/chat/models/loading.cljs b/src/status_im/chat/models/loading.cljs index dec7141f36f..622671d9c21 100644 --- a/src/status_im/chat/models/loading.cljs +++ b/src/status_im/chat/models/loading.cljs @@ -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