mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 06:07:06 +02:00
Add Boost Group in group menu.
This commit is contained in:
parent
571f1a5179
commit
cfaef4c441
2 changed files with 8 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -243,6 +243,8 @@ public:
|
|||
void searchInChat(Dialogs::Key inChat);
|
||||
void searchMessages(const QString &query, Dialogs::Key inChat);
|
||||
|
||||
void resolveBoostState(not_null<ChannelData*> channel);
|
||||
|
||||
base::weak_ptr<Ui::Toast::Instance> showToast(
|
||||
Ui::Toast::Config &&config);
|
||||
base::weak_ptr<Ui::Toast::Instance> showToast(
|
||||
|
@ -279,7 +281,6 @@ private:
|
|||
not_null<PeerData*> peer,
|
||||
const PeerByLinkInfo &info);
|
||||
|
||||
void resolveBoostState(not_null<ChannelData*> channel);
|
||||
void applyBoost(
|
||||
not_null<ChannelData*> channel,
|
||||
Fn<void(Ui::BoostCounters)> done);
|
||||
|
|
Loading…
Add table
Reference in a new issue