From 84b3260f38c957a884815b9e6b4b891b44d61e66 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 5 Aug 2022 14:52:19 +0300 Subject: [PATCH] Don't open group info on migration update. --- Telegram/SourceFiles/info/info_controller.cpp | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/Telegram/SourceFiles/info/info_controller.cpp b/Telegram/SourceFiles/info/info_controller.cpp index 525323c83..96903e6b4 100644 --- a/Telegram/SourceFiles/info/info_controller.cpp +++ b/Telegram/SourceFiles/info/info_controller.cpp @@ -184,13 +184,17 @@ void Controller::setupMigrationViewer() { }) | rpl::start_with_next([=] { const auto window = parentController(); const auto section = _section; + auto params = Window::SectionShow( + Window::SectionShow::Way::Backward, + anim::type::instant, + anim::activation::background); + if (wrap() == Wrap::Side) { + params.thirdColumn = true; + } InvokeQueued(_widget, [=] { window->showSection( std::make_shared(peer, section), - Window::SectionShow( - Window::SectionShow::Way::Backward, - anim::type::instant, - anim::activation::background)); + params); }); }, lifetime()); }