From b492ed29699f8d96e1b42c06b30859a9cab85dc9 Mon Sep 17 00:00:00 2001 From: Roman Volosovskyi Date: Thu, 27 Oct 2022 15:00:44 +0200 Subject: [PATCH] [#14230] Reset :current-chat-id on pressing back from chat screen --- src/status_im/ui2/screens/chat/view.cljs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/status_im/ui2/screens/chat/view.cljs b/src/status_im/ui2/screens/chat/view.cljs index f5cc1ecc59..3b7cdcf9f9 100644 --- a/src/status_im/ui2/screens/chat/view.cljs +++ b/src/status_im/ui2/screens/chat/view.cljs @@ -31,7 +31,9 @@ :size 32 :width 32 :accessibility-label "back-button" - :on-press #(>evt [:navigate-back])} + :on-press #(do + (>evt [:close-chat]) + (>evt [:navigate-back]))} [icons/icon :main-icons/arrow-left {:color (colors/theme-colors colors/neutral-100 colors/white)}]]) (defn search-button []