From f8caa02f108d40358bfe5f4cc87cc6229d630058 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 12 Jan 2024 13:58:12 +0400 Subject: [PATCH] Fix animating list->chat transition in single column. --- Telegram/SourceFiles/mainwidget.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/mainwidget.cpp b/Telegram/SourceFiles/mainwidget.cpp index fe92a6de1..fef1fb39c 100644 --- a/Telegram/SourceFiles/mainwidget.cpp +++ b/Telegram/SourceFiles/mainwidget.cpp @@ -1524,7 +1524,9 @@ bool MainWidget::saveSectionInStack( _history->msgId(), _history->replyReturns())); } else { - return false; + // We pretend that we "saved" the chats list state in stack, + // so that we do animate a transition from chats list to a section. + return true; } const auto raw = _stack.back().get(); raw->setThirdSectionWeak(_thirdSection.data());