diff --git a/src/status_im/chat/models/loading.cljs b/src/status_im/chat/models/loading.cljs index dec7141f36..622671d9c2 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