From 83eb35274788f394429c97a137c8d642f37972d2 Mon Sep 17 00:00:00 2001 From: John Preston Date: Thu, 17 Aug 2023 10:31:17 +0200 Subject: [PATCH] Fix archive open in single-column layout. Regression was introduced in 16128d61c0. Before we always force-closed the current filter, which always force-closed the current opened chat. Now we don't touch the filter if it is All Chats already, so that it's scroll state isn't forgotten. In that case we have to clear the stack in single-column layout explicitly. --- Telegram/SourceFiles/window/window_session_controller.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Telegram/SourceFiles/window/window_session_controller.cpp b/Telegram/SourceFiles/window/window_session_controller.cpp index d37fd7bd0..486087771 100644 --- a/Telegram/SourceFiles/window/window_session_controller.cpp +++ b/Telegram/SourceFiles/window/window_session_controller.cpp @@ -1160,6 +1160,8 @@ void SessionController::openFolder(not_null folder) { } if (activeChatsFilterCurrent() != 0) { setActiveChatsFilter(0); + } else if (adaptive().isOneColumn()) { + clearSectionStack(SectionShow::Way::ClearStack); } closeForum(); _openedFolder = folder.get();