From 7dfed2a0120b6ca0104ccef973a2f84897367f38 Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 21 Apr 2023 14:23:54 +0400 Subject: [PATCH] Disable some bot editing items while there is no design. --- Telegram/SourceFiles/boxes/peers/edit_peer_info_box.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Telegram/SourceFiles/boxes/peers/edit_peer_info_box.cpp b/Telegram/SourceFiles/boxes/peers/edit_peer_info_box.cpp index 541af224eb..4984db088b 100644 --- a/Telegram/SourceFiles/boxes/peers/edit_peer_info_box.cpp +++ b/Telegram/SourceFiles/boxes/peers/edit_peer_info_box.cpp @@ -310,9 +310,11 @@ private: void fillPendingRequestsButton(); void fillBotUsernamesButton(); +#if 0 // Enable after design improvements. void fillBotEditIntroButton(); void fillBotEditCommandsButton(); void fillBotEditSettingsButton(); +#endif void submitTitle(); void submitDescription(); @@ -1010,9 +1012,11 @@ void Controller::fillManageSection() { container, st::editPeerTopButtonsLayoutSkipCustomTop); fillBotUsernamesButton(); +#if 0 // Enable after design improvements. fillBotEditIntroButton(); fillBotEditCommandsButton(); fillBotEditSettingsButton(); +#endif Settings::AddSkip( container, st::editPeerTopButtonsLayoutSkipCustomBottom); @@ -1410,6 +1414,7 @@ void Controller::fillBotUsernamesButton() { { &st::infoRoundedIconInviteLinks, Settings::kIconLightOrange }); } +#if 0 // Enable after design improvements. void Controller::fillBotEditIntroButton() { Expects(_isBot); @@ -1445,6 +1450,7 @@ void Controller::fillBotEditSettingsButton() { [=] { toggleBotManager(user->username()); }, { &st::settingsIconChat, Settings::kIconLightBlue }); } +#endif void Controller::submitTitle() { Expects(_controls.title != nullptr);