Disable wallet initialization in desktop. Part of #5739

Signed-off-by: Pedro Pombeiro <pombeirp@users.noreply.github.com>
This commit is contained in:
Pedro Pombeiro 2018-09-19 11:44:20 +02:00
parent f11b3cc670
commit e69fb18de9
No known key found for this signature in database
GPG Key ID: A65DEB11E4BBC647
1 changed files with 8 additions and 3 deletions

View File

@ -168,6 +168,13 @@
console-contact
(assoc :contacts/contacts {constants/console-chat-id console-contact}))}))
(defn initialize-wallet [cofx]
(when-not platform/desktop?
(handlers-macro/merge-fx cofx
(models.wallet/update-wallet)
(transactions/run-update)
(transactions/start-sync))))
(defn login-only-events [address {:keys [db] :as cofx}]
(when (not= (:view-id db) :create-account)
(handlers-macro/merge-fx cofx
@ -191,9 +198,7 @@
(chat/process-pending-messages)
(browser/initialize-browsers)
(browser/initialize-dapp-permissions)
(models.wallet/update-wallet)
(transactions/run-update)
(transactions/start-sync)
(initialize-wallet)
(accounts.update/update-sign-in-time)
(login-only-events address)))