2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-30 22:16:14 +00:00

Support default General topic in forums.

This commit is contained in:
John Preston
2022-09-26 17:37:32 +04:00
parent 2201159da5
commit 73e56b0340
23 changed files with 385 additions and 183 deletions

View File

@@ -248,6 +248,7 @@ public:
not_null<Window::SessionNavigation*> navigation,
not_null<Ui::BoxContent*> box,
not_null<PeerData*> peer);
~Controller();
[[nodiscard]] object_ptr<Ui::VerticalLayout> createContent();
void setFocus();
@@ -388,6 +389,8 @@ Controller::Controller(
_peer->updateFull();
}
Controller::~Controller() = default;
void Controller::subscribeToMigration() {
SubscribeToMigration(
_peer,
@@ -815,7 +818,7 @@ void Controller::fillForumButton() {
AddButtonWithText(
_controls.buttonsLayout,
rpl::single(u"Forum"_q), // #TODO forum
rpl::single(u"Forum"_q), // #TODO forum lang
rpl::single(QString()),
[] {},
{ &st::settingsIconGroup, Settings::kIconPurple }