diff --git a/src/status_im/chat/handlers.cljs b/src/status_im/chat/handlers.cljs index 2badf08a28..cdb36f84b7 100644 --- a/src/status_im/chat/handlers.cljs +++ b/src/status_im/chat/handlers.cljs @@ -273,7 +273,9 @@ (defn init-chat ([db] (init-chat db nil)) ([{:keys [messages current-chat-id] :as db} _] - (assoc-in db [:chats current-chat-id :messages] messages))) + (-> db + (assoc-in [:chats current-chat-id :messages] messages) + (dissoc :messages)))) (defn load-commands! [{:keys [current-chat-id]}] diff --git a/src/status_im/handlers.cljs b/src/status_im/handlers.cljs index fe8c494b20..e4f67196cf 100644 --- a/src/status_im/handlers.cljs +++ b/src/status_im/handlers.cljs @@ -56,8 +56,12 @@ (register-handler :initialize-account-db (fn [db _] - (assoc db :current-chat-id console-chat-id - :edit-mode nil))) + (-> db + (assoc :current-chat-id console-chat-id) + (dissoc :edit-mode + :transactions + :transactions-queue + :new-contact-identity)))) (register-handler :initialize-account (u/side-effect!