From d59c9205ea53d7cb5ac9cab3bddb46164fd7cbd3 Mon Sep 17 00:00:00 2001 From: andrey Date: Wed, 21 Apr 2021 11:38:12 +0200 Subject: [PATCH] [#12011] Invisible messages in public and group chats if they were received while user was on another screen Signed-off-by: Andrea Maria Piana --- src/status_im/chat/models.cljs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/status_im/chat/models.cljs b/src/status_im/chat/models.cljs index cf4e9f2664..0f227e7790 100644 --- a/src/status_im/chat/models.cljs +++ b/src/status_im/chat/models.cljs @@ -273,7 +273,8 @@ {:events [:chat.ui/navigate-to-chat]} [{db :db :as cofx} chat-id] (fx/merge cofx - {:db (assoc db :current-chat-id chat-id)} + (close-chat) + #(assoc-in % [:db :current-chat-id] chat-id) (preload-chat-data chat-id) (navigation/navigate-to-cofx :chat-stack {:screen :chat})))