Skip to content

Commit

Permalink
f
Browse files Browse the repository at this point in the history
  • Loading branch information
Ferossgp committed Mar 13, 2020
1 parent 7961a47 commit f4b9a76
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
20 changes: 11 additions & 9 deletions src/status_im/multiaccounts/login/core.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -252,15 +252,17 @@
[{:keys [db] :as cofx}]
(let [{:keys [:multiaccount/accounts]} db]
(fx/merge cofx
{:db (assoc db
;;NOTE when login the filters are initialized twice
;;once for contacts and once for chats
;;when creating an account we do it only once by calling
;;load-filters directly because we don't have chats and contacts
;;later on there is a check that filters have been initialized twice
;;so here we set it at 1 already so that it passes the check once it has
;;been initialized
:filters/initialized 1)
{:db (-> db
(dissoc :multiaccounts/login)
(assoc
;;NOTE when login the filters are initialized twice
;;once for contacts and once for chats
;;when creating an account we do it only once by calling
;;load-filters directly because we don't have chats and contacts
;;later on there is a check that filters have been initialized twice
;;so here we set it at 1 already so that it passes the check once it has
;;been initialized
:filters/initialized 1))
:filters/load-filters []}
(finish-keycard-setup)
(protocol/initialize-protocol {:mailservers []
Expand Down
2 changes: 0 additions & 2 deletions src/status_im/ui/screens/routing/chat_stack.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
{:name :chat
:on-focus [::chat.loading/load-messages]
:component chat/chat}
{:name :select-chat
:component chat/select-chat}
{:name :profile
:component profile.contact/profile}
{:name :new-group
Expand Down

0 comments on commit f4b9a76

Please sign in to comment.