Separate window for forums/topics/sublists/archive.

This commit is contained in:
John Preston
2024-06-28 21:44:06 +04:00
parent 6dc3bd65e8
commit 69d21f73ef
34 changed files with 753 additions and 414 deletions

View File

@@ -269,13 +269,11 @@ void MainWindow::setupMain(
auto created = object_ptr<MainWidget>(bodyWidget(), sessionController());
clearWidgets();
_main = std::move(created);
if (const auto peer = singlePeer()) {
updateControlsGeometry();
_main->controller()->showPeerHistory(
peer,
Window::SectionShow::Way::ClearStack,
singlePeerShowAtMsgId);
}
updateControlsGeometry();
Ui::SendPendingMoveResizeEvents(_main);
_main->controller()->showByInitialId(
Window::SectionShow::Way::ClearStack,
singlePeerShowAtMsgId);
if (_passcodeLock) {
_main->hide();
} else {