[#11994] No chats on Home screen after reopening the app if appearance doesn't match the device settings (dark/light mode)

Signed-off-by: andrey <motor4ik@gmail.com>
This commit is contained in:
andrey 2021-04-14 16:16:51 +02:00
parent 2494c61f85
commit c22ffb1032
No known key found for this signature in database
GPG Key ID: 89B67245FD2F0272
3 changed files with 5 additions and 2 deletions

View File

@ -358,6 +358,7 @@
:pin
:multiaccount)
(assoc :logged-in-since now)
(assoc :view-id :home)
(assoc :wallet/waiting-for-recent-history? true))
::json-rpc/call
[{:method "web3_clientVersion"

View File

@ -75,7 +75,9 @@
(def memo-separator-fn
(memoize
(fn [separator default-separator?]
(reagent/as-element (or separator (when (and platform/ios? default-separator?) default-separator))))))
(when-let [separator (or separator (when (and platform/ios? default-separator?) default-separator))]
(fn []
(reagent/as-element separator))))))
(def memo-as-element
(memoize

View File

@ -331,7 +331,7 @@
set-active-panel (get-set-active-panel active-panel)
on-close #(set-active-panel nil)]
(reagent/create-class
{:component-will-unmount #(re-frame/dispatch [:close-chat])
{:component-will-unmount #(re-frame/dispatch-sync [:close-chat])
:reagent-render
(fn []
(let [{:keys [chat-id show-input? group-chat admins invitation-admin] :as chat}