mirror of
https://github.com/status-im/status-mobile.git
synced 2025-01-15 03:05:17 +00:00
fix App is not opened on the last viewed chat with biometric login enabled (#16516)
This commit is contained in:
parent
9ac14b6fac
commit
728d9d01c5
@ -198,16 +198,8 @@
|
|||||||
:key-uid (get-in cofx [:db :profile/profile :key-uid])}
|
:key-uid (get-in cofx [:db :profile/profile :key-uid])}
|
||||||
:db (assoc db :screens/was-focused-once? true)}
|
:db (assoc db :screens/was-focused-once? true)}
|
||||||
|
|
||||||
(= :login view-id)
|
|
||||||
{}
|
|
||||||
|
|
||||||
(not (get db :screens/was-focused-once?))
|
(not (get db :screens/was-focused-once?))
|
||||||
{:db (assoc db :screens/was-focused-once? true)}
|
{:db (assoc db :screens/was-focused-once? true)})
|
||||||
|
|
||||||
:else
|
|
||||||
{::async-storage/set! {:chat-id nil
|
|
||||||
:key-uid nil}
|
|
||||||
:db (assoc db :screens/was-focused-once? true)})
|
|
||||||
#(case view-id
|
#(case view-id
|
||||||
:keycard-settings (keycard/settings-screen-did-load %)
|
:keycard-settings (keycard/settings-screen-did-load %)
|
||||||
:reset-card (keycard/reset-card-screen-did-load %)
|
:reset-card (keycard/reset-card-screen-did-load %)
|
||||||
|
@ -174,7 +174,9 @@
|
|||||||
(chat.state/reset-visible-item)
|
(chat.state/reset-visible-item)
|
||||||
(rf/merge cofx
|
(rf/merge cofx
|
||||||
(merge
|
(merge
|
||||||
{:db (dissoc db :current-chat-id)}
|
{:db (dissoc db :current-chat-id)
|
||||||
|
::async-storage/set! {:chat-id nil
|
||||||
|
:key-uid nil}}
|
||||||
(let [community-id (get-in db [:chats chat-id :community-id])]
|
(let [community-id (get-in db [:chats chat-id :community-id])]
|
||||||
;; When navigating back from community chat to community, update switcher card
|
;; When navigating back from community chat to community, update switcher card
|
||||||
;; A close chat event is also called while opening any chat.
|
;; A close chat event is also called while opening any chat.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user