Don't open group info on migration update.

This commit is contained in:
John Preston 2022-08-05 14:52:19 +03:00
parent 7a3452a18a
commit 84b3260f38
1 changed files with 8 additions and 4 deletions

View File

@ -184,13 +184,17 @@ void Controller::setupMigrationViewer() {
}) | rpl::start_with_next([=] { }) | rpl::start_with_next([=] {
const auto window = parentController(); const auto window = parentController();
const auto section = _section; 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, [=] { InvokeQueued(_widget, [=] {
window->showSection( window->showSection(
std::make_shared<Memento>(peer, section), std::make_shared<Memento>(peer, section),
Window::SectionShow( params);
Window::SectionShow::Way::Backward,
anim::type::instant,
anim::activation::background));
}); });
}, lifetime()); }, lifetime());
} }