Remove unused :chats/loading? state
This commit is contained in:
parent
5208c88bcd
commit
137c85769c
|
@ -34,8 +34,7 @@
|
||||||
new-chats-js)]
|
new-chats-js)]
|
||||||
{:db (-> db
|
{:db (-> db
|
||||||
(update :chats merge all-chats)
|
(update :chats merge all-chats)
|
||||||
(update :chats-home-list into chats-home-list)
|
(update :chats-home-list into chats-home-list))})))
|
||||||
(assoc :chats/loading? false))})))
|
|
||||||
|
|
||||||
(rf/defn load-chat-success
|
(rf/defn load-chat-success
|
||||||
{:events [:chats-list/load-chat-success]}
|
{:events [:chats-list/load-chat-success]}
|
||||||
|
|
|
@ -135,7 +135,6 @@
|
||||||
:chat/cooldowns
|
:chat/cooldowns
|
||||||
:chat/last-outgoing-message-sent-at
|
:chat/last-outgoing-message-sent-at
|
||||||
:chat/spam-messages-frequency
|
:chat/spam-messages-frequency
|
||||||
:chats/loading?
|
|
||||||
:dimensions/window]))]
|
:dimensions/window]))]
|
||||||
{:logs/archive-logs [db-json
|
{:logs/archive-logs [db-json
|
||||||
(if (= transport :email)
|
(if (= transport :email)
|
||||||
|
|
|
@ -44,10 +44,10 @@
|
||||||
log-level (or (:log-level settings) config/log-level)
|
log-level (or (:log-level settings) config/log-level)
|
||||||
pairing-completed? (= (get-in db [:syncing :pairing-status]) :completed)]
|
pairing-completed? (= (get-in db [:syncing :pairing-status]) :completed)]
|
||||||
{:db (cond-> (-> db
|
{:db (cond-> (-> db
|
||||||
(assoc :chats/loading? true
|
(assoc :profile/profile
|
||||||
:profile/profile (merge profile-overview
|
(merge profile-overview
|
||||||
settings
|
settings
|
||||||
{:log-level log-level}))
|
{:log-level log-level}))
|
||||||
(assoc-in [:activity-center :loading?] true)
|
(assoc-in [:activity-center :loading?] true)
|
||||||
(dissoc :centralized-metrics/onboarding-enabled?))
|
(dissoc :centralized-metrics/onboarding-enabled?))
|
||||||
pairing-completed?
|
pairing-completed?
|
||||||
|
|
|
@ -99,7 +99,6 @@
|
||||||
(reg-root-key-sub :chats/chats :chats)
|
(reg-root-key-sub :chats/chats :chats)
|
||||||
(reg-root-key-sub :chats/current-chat-id :current-chat-id)
|
(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 :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 :new-chat-name :new-chat-name)
|
||||||
(reg-root-key-sub :chat/inputs :chat/inputs)
|
(reg-root-key-sub :chat/inputs :chat/inputs)
|
||||||
(reg-root-key-sub :chat/memberships :chat/memberships)
|
(reg-root-key-sub :chat/memberships :chat/memberships)
|
||||||
|
|
Loading…
Reference in New Issue