Skip to content

Commit

Permalink
Fix archive open in single-column layout.
Browse files Browse the repository at this point in the history
Regression was introduced in 16128d6.

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.
  • Loading branch information
john-preston committed Aug 17, 2023
1 parent e481150 commit 83eb352
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Telegram/SourceFiles/window/window_session_controller.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit 83eb352

Please sign in to comment.