[#4759] Handle back button properly after sending transaction (Android).
This commit is contained in:
parent
0dd5c11b47
commit
71ff9d9035
|
@ -21,7 +21,8 @@
|
||||||
(let [stack (subscribe [:get :navigation-stack])
|
(let [stack (subscribe [:get :navigation-stack])
|
||||||
result-box (subscribe [:get-current-chat-ui-prop :result-box])
|
result-box (subscribe [:get-current-chat-ui-prop :result-box])
|
||||||
webview (subscribe [:get :webview-bridge])
|
webview (subscribe [:get :webview-bridge])
|
||||||
view-id (subscribe [:get :view-id])]
|
view-id (subscribe [:get :view-id])
|
||||||
|
chat-id (subscribe [:get-current-chat-id])]
|
||||||
(cond
|
(cond
|
||||||
|
|
||||||
(and @webview (:can-go-back? @result-box))
|
(and @webview (:can-go-back? @result-box))
|
||||||
|
@ -30,6 +31,9 @@
|
||||||
(#{:home :wallet :my-profile} view-id)
|
(#{:home :wallet :my-profile} view-id)
|
||||||
(do (.exitApp react/back-handler))
|
(do (.exitApp react/back-handler))
|
||||||
|
|
||||||
|
(= :wallet-transaction-sent @view-id)
|
||||||
|
(do (dispatch [:execute-stored-command-and-return-to-chat @chat-id]) true)
|
||||||
|
|
||||||
(< 1 (count @stack))
|
(< 1 (count @stack))
|
||||||
(do (dispatch [:navigate-back]) true)
|
(do (dispatch [:navigate-back]) true)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue