From f59c46cd7ca7a0c67ffe8f2eaba9e0e9692ae33a Mon Sep 17 00:00:00 2001 From: John Preston Date: Sat, 17 Feb 2024 11:27:38 +0400 Subject: [PATCH] Remove "Boost Group" button in channels. --- Telegram/SourceFiles/window/window_peer_menu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/window/window_peer_menu.cpp b/Telegram/SourceFiles/window/window_peer_menu.cpp index 10999c91c..bcba1a434 100644 --- a/Telegram/SourceFiles/window/window_peer_menu.cpp +++ b/Telegram/SourceFiles/window/window_peer_menu.cpp @@ -1054,7 +1054,7 @@ void Filler::addViewStatistics() { controller->showSection(Info::Boosts::Make(peer)); } }, &st::menuIconBoosts); - } else { + } else if (channel->isMegagroup()) { _addAction(tr::lng_boost_group_button(tr::now), [=] { if (const auto strong = weak.get()) { controller->resolveBoostState(channel);