fix app theme changes with PN enabled and the app closed (#15670)

This commit is contained in:
Parvesh Monu 2023-04-18 16:01:52 +05:30 committed by GitHub
parent 7c101716d7
commit 41e2fffb87
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,7 @@
[status-im2.navigation.state :as state]
[status-im2.navigation.view :as views]
[taoensso.timbre :as log]
[status-im2.common.theme.core :as theme]
[status-im2.navigation.options :as options]))
(navigation/set-lazy-component-registrator
@ -26,7 +27,8 @@
(if (= @state/root-id :multiaccounts-stack)
(re-frame/dispatch-sync [:set-multiaccount-root])
(when @state/root-id
(navigation/set-root (get (roots/roots) @state/root-id))
(reset! theme/device-theme (rn/get-color-scheme))
(re-frame/dispatch [:init-root @state/root-id])
(re-frame/dispatch [::login-core/check-last-chat])))
(rn/hide-splash-screen)))