fix keycard account shown as regular account on theme change while login (#13918)
This commit is contained in:
parent
337a4d7d1c
commit
a5ef9940da
|
@ -124,6 +124,10 @@
|
|||
view-id (:view-id db)
|
||||
screen-params (get-in db [:navigation/screen-params view-id])
|
||||
root-id @navigation.state/root-id
|
||||
key-uid (get-in db [:multiaccounts/login :key-uid])
|
||||
keycard-account? (boolean (get-in db [:multiaccounts/multiaccounts
|
||||
key-uid
|
||||
:keycard-pairing]))
|
||||
dispatch-later (cond-> []
|
||||
(= view-id :chat)
|
||||
(conj {:ms 1000
|
||||
|
@ -159,7 +163,9 @@
|
|||
(visibility-status-popover/hide-visibility-status-popover))
|
||||
(when (get-in db [:signing/tx])
|
||||
(signing/discard))
|
||||
(navigation/init-root root-id)
|
||||
(if (and (= root-id :multiaccounts) keycard-account?)
|
||||
(navigation/init-root-with-component :multiaccounts-keycard :multiaccounts)
|
||||
(navigation/init-root root-id))
|
||||
(when (= root-id :chat-stack)
|
||||
(navigation/change-tab current-tab))))))
|
||||
|
||||
|
|
Loading…
Reference in New Issue