diff --git a/Telegram/SourceFiles/window/window_peer_menu.cpp b/Telegram/SourceFiles/window/window_peer_menu.cpp index 0e3c48cdb..10999c91c 100644 --- a/Telegram/SourceFiles/window/window_peer_menu.cpp +++ b/Telegram/SourceFiles/window/window_peer_menu.cpp @@ -1054,6 +1054,12 @@ void Filler::addViewStatistics() { controller->showSection(Info::Boosts::Make(peer)); } }, &st::menuIconBoosts); + } else { + _addAction(tr::lng_boost_group_button(tr::now), [=] { + if (const auto strong = weak.get()) { + controller->resolveBoostState(channel); + } + }, &st::menuIconBoosts); } } } diff --git a/Telegram/SourceFiles/window/window_session_controller.h b/Telegram/SourceFiles/window/window_session_controller.h index 7aa32404d..57e528579 100644 --- a/Telegram/SourceFiles/window/window_session_controller.h +++ b/Telegram/SourceFiles/window/window_session_controller.h @@ -243,6 +243,8 @@ public: void searchInChat(Dialogs::Key inChat); void searchMessages(const QString &query, Dialogs::Key inChat); + void resolveBoostState(not_null channel); + base::weak_ptr showToast( Ui::Toast::Config &&config); base::weak_ptr showToast( @@ -279,7 +281,6 @@ private: not_null peer, const PeerByLinkInfo &info); - void resolveBoostState(not_null channel); void applyBoost( not_null channel, Fn done);