mirror of
https://github.com/status-im/status-mobile.git
synced 2025-02-13 09:06:52 +00:00
fix close chat on tab (#13472)
This commit is contained in:
parent
430f322f95
commit
a93a3b6878
@ -284,8 +284,11 @@
|
||||
comp (get tab-root-ids selected-tab-index)
|
||||
tab-key (get (clojure.set/map-invert tab-key-idx) selected-tab-index)]
|
||||
(re-frame/dispatch [:set :current-tab tab-key])
|
||||
(when (and platform/android? (= @state/root-comp-id comp))
|
||||
(.popToRoot Navigation (name comp)))
|
||||
(when (= @state/root-comp-id comp)
|
||||
(when (= :chat tab-key)
|
||||
(re-frame/dispatch [:close-chat]))
|
||||
(when platform/android?
|
||||
(.popToRoot Navigation (name comp))))
|
||||
(reset! state/root-comp-id comp)))))
|
||||
|
||||
;; OVERLAY (Popover and bottom sheets)
|
||||
|
Loading…
x
Reference in New Issue
Block a user