[#4068] keep existing device UUID when changing account
This commit is contained in:
parent
2d6cb4fd04
commit
bd0b447457
|
@ -263,7 +263,7 @@
|
|||
(handlers/register-handler-fx
|
||||
:initialize-db
|
||||
(fn [{{:keys [status-module-initialized? status-node-started?
|
||||
network-status network]
|
||||
network-status network device-UUID]
|
||||
:or {network (get app-db :network)}} :db}
|
||||
[_ encryption-key]]
|
||||
{::init-store encryption-key
|
||||
|
@ -272,14 +272,15 @@
|
|||
:network-status network-status
|
||||
:status-module-initialized? (or platform/ios? js/goog.DEBUG status-module-initialized?)
|
||||
:status-node-started? status-node-started?
|
||||
:network network)}))
|
||||
:network network
|
||||
:device-UUID device-UUID)}))
|
||||
|
||||
(handlers/register-handler-db
|
||||
:initialize-account-db
|
||||
(fn [{:keys [accounts/accounts accounts/create contacts/contacts networks/networks
|
||||
network network-status view-id navigation-stack
|
||||
access-scope->commands-responses
|
||||
status-module-initialized? status-node-started?]
|
||||
status-module-initialized? status-node-started? device-UUID]
|
||||
:or [network (get app-db :network)]} [_ address]]
|
||||
(let [console-contact (get contacts constants/console-chat-id)
|
||||
current-account (accounts address)]
|
||||
|
@ -294,7 +295,8 @@
|
|||
:networks/networks networks
|
||||
:account/account current-account
|
||||
:network-status network-status
|
||||
:network network)
|
||||
:network network
|
||||
:device-UUID device-UUID)
|
||||
console-contact
|
||||
(assoc :contacts/contacts {constants/console-chat-id console-contact})))))
|
||||
|
||||
|
|
Loading…
Reference in New Issue