mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-30 22:16:14 +00:00
Add Boost Group in group menu.
This commit is contained in:
@@ -1054,6 +1054,12 @@ void Filler::addViewStatistics() {
|
|||||||
controller->showSection(Info::Boosts::Make(peer));
|
controller->showSection(Info::Boosts::Make(peer));
|
||||||
}
|
}
|
||||||
}, &st::menuIconBoosts);
|
}, &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 searchInChat(Dialogs::Key inChat);
|
||||||
void searchMessages(const QString &query, Dialogs::Key inChat);
|
void searchMessages(const QString &query, Dialogs::Key inChat);
|
||||||
|
|
||||||
|
void resolveBoostState(not_null<ChannelData*> channel);
|
||||||
|
|
||||||
base::weak_ptr<Ui::Toast::Instance> showToast(
|
base::weak_ptr<Ui::Toast::Instance> showToast(
|
||||||
Ui::Toast::Config &&config);
|
Ui::Toast::Config &&config);
|
||||||
base::weak_ptr<Ui::Toast::Instance> showToast(
|
base::weak_ptr<Ui::Toast::Instance> showToast(
|
||||||
@@ -279,7 +281,6 @@ private:
|
|||||||
not_null<PeerData*> peer,
|
not_null<PeerData*> peer,
|
||||||
const PeerByLinkInfo &info);
|
const PeerByLinkInfo &info);
|
||||||
|
|
||||||
void resolveBoostState(not_null<ChannelData*> channel);
|
|
||||||
void applyBoost(
|
void applyBoost(
|
||||||
not_null<ChannelData*> channel,
|
not_null<ChannelData*> channel,
|
||||||
Fn<void(Ui::BoostCounters)> done);
|
Fn<void(Ui::BoostCounters)> done);
|
||||||
|
Reference in New Issue
Block a user