From 155b90ec0501efe9115c18612a6f21e2f1c44de6 Mon Sep 17 00:00:00 2001 From: Alexander Zinchuk Date: Sat, 24 Apr 2021 13:35:53 +0300 Subject: [PATCH] Fix browser history on mobile --- src/modules/actions/ui/chats.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/actions/ui/chats.ts b/src/modules/actions/ui/chats.ts index a6f504772..d5831a626 100644 --- a/src/modules/actions/ui/chats.ts +++ b/src/modules/actions/ui/chats.ts @@ -24,8 +24,8 @@ addReducer('openChat', (global, actions, payload) => { const currentMessageList = selectCurrentMessageList(global); - if (currentMessageList - && ( + if (!currentMessageList + || ( currentMessageList.chatId !== id || currentMessageList.threadId !== threadId || currentMessageList.type !== type