diff --git a/src/status_im/contexts/chat/messenger/messages/view.cljs b/src/status_im/contexts/chat/messenger/messages/view.cljs index 4ba3e4f694..c6fa7ef6b9 100644 --- a/src/status_im/contexts/chat/messenger/messages/view.cljs +++ b/src/status_im/contexts/chat/messenger/messages/view.cljs @@ -57,7 +57,7 @@ chat-screen-layout-calculations-complete?}] (when *screen-loaded?* (rn/use-mount #(reset! *screen-loaded?* true))) - (rn/use-unmount #(rf/dispatch [:chat/clear-current-chat-id])) + (rn/use-unmount #(rf/dispatch [:chat/close])) (when-not (if *screen-loaded?* @*screen-loaded?* screen-loaded?) (reanimated/set-shared-value chat-screen-layout-calculations-complete? false) (reanimated/set-shared-value distance-from-list-top 0)