2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-05 00:46:08 +00:00

Allow opening monoforums.

This commit is contained in:
John Preston
2025-05-06 21:22:36 +04:00
parent d3f9a84a0a
commit 51878ab38e
14 changed files with 317 additions and 20 deletions

View File

@@ -1565,6 +1565,18 @@ void MainWidget::showForum(
}
}
void MainWidget::showMonoforum(
not_null<Data::SavedMessages*> monoforum,
const SectionShow &params) {
Expects(_dialogs != nullptr);
_dialogs->showMonoforum(monoforum, params);
if (params.activation != anim::activation::background) {
_controller->window().hideSettingsAndLayer();
}
}
PeerData *MainWidget::peer() const {
return _history->peer();
}