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.
This commit is contained in:
John Preston 2023-08-17 10:31:17 +02:00
parent e4811505c8
commit 83eb352747
1 changed files with 2 additions and 0 deletions

View File

@ -1160,6 +1160,8 @@ void SessionController::openFolder(not_null<Data::Folder*> folder) {
}
if (activeChatsFilterCurrent() != 0) {
setActiveChatsFilter(0);
} else if (adaptive().isOneColumn()) {
clearSectionStack(SectionShow::Way::ClearStack);
}
closeForum();
_openedFolder = folder.get();