From b71f78916b54d1777d9f28988513a64836ac2742 Mon Sep 17 00:00:00 2001 From: Icaro Motta Date: Thu, 21 Nov 2024 23:23:35 -0300 Subject: [PATCH] Remove chats/loading? state --- src/legacy/status_im/chat/models/loading.cljs | 3 +-- src/legacy/status_im/utils/logging/core.cljs | 1 - src/status_im/contexts/profile/login/events.cljs | 8 ++++---- src/status_im/subs/root.cljs | 1 - 4 files changed, 5 insertions(+), 8 deletions(-) diff --git a/src/legacy/status_im/chat/models/loading.cljs b/src/legacy/status_im/chat/models/loading.cljs index 91e8a43538..a0e10de5f7 100644 --- a/src/legacy/status_im/chat/models/loading.cljs +++ b/src/legacy/status_im/chat/models/loading.cljs @@ -34,8 +34,7 @@ new-chats-js)] {:db (-> db (update :chats merge all-chats) - (update :chats-home-list into chats-home-list) - (assoc :chats/loading? false))}))) + (update :chats-home-list into chats-home-list))}))) (rf/defn load-chat-success {:events [:chats-list/load-chat-success]} diff --git a/src/legacy/status_im/utils/logging/core.cljs b/src/legacy/status_im/utils/logging/core.cljs index eae886a6a6..270ae5ef99 100644 --- a/src/legacy/status_im/utils/logging/core.cljs +++ b/src/legacy/status_im/utils/logging/core.cljs @@ -135,7 +135,6 @@ :chat/cooldowns :chat/last-outgoing-message-sent-at :chat/spam-messages-frequency - :chats/loading? :dimensions/window]))] {:logs/archive-logs [db-json (if (= transport :email) diff --git a/src/status_im/contexts/profile/login/events.cljs b/src/status_im/contexts/profile/login/events.cljs index 854c623ed8..faba267345 100644 --- a/src/status_im/contexts/profile/login/events.cljs +++ b/src/status_im/contexts/profile/login/events.cljs @@ -42,10 +42,10 @@ log-level (or (:log-level settings) config/log-level) pairing-completed? (= (get-in db [:syncing :pairing-status]) :completed) new-db (-> db - (assoc :chats/loading? true - :profile/profile (merge profile-overview - settings - {:log-level log-level})) + (assoc :profile/profile + (merge profile-overview + settings + {:log-level log-level})) (assoc-in [:activity-center :loading?] true) (dissoc :centralized-metrics/onboarding-enabled?))] {:db (cond-> new-db diff --git a/src/status_im/subs/root.cljs b/src/status_im/subs/root.cljs index 4b27862673..3a2254f9f4 100644 --- a/src/status_im/subs/root.cljs +++ b/src/status_im/subs/root.cljs @@ -100,7 +100,6 @@ (reg-root-key-sub :chats/chats :chats) (reg-root-key-sub :chats/current-chat-id :current-chat-id) (reg-root-key-sub :public-group-topic :public-group-topic) -(reg-root-key-sub :chats/loading? :chats/loading?) (reg-root-key-sub :new-chat-name :new-chat-name) (reg-root-key-sub :chat/inputs :chat/inputs) (reg-root-key-sub :chat/memberships :chat/memberships)