2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 06:35:14 +00:00

Allow boosts / giveaways in groups.

This commit is contained in:
John Preston
2024-02-02 21:30:53 +04:00
parent cb174cb0bf
commit f6a8c1e996
16 changed files with 302 additions and 148 deletions

View File

@@ -1046,10 +1046,9 @@ void Filler::addViewStatistics() {
}
}, &st::menuIconStats);
}
if (!channel->isMegagroup()
&& (canGetStats
|| channel->amCreator()
|| channel->canPostStories())) {
if (canGetStats
|| channel->amCreator()
|| channel->canPostStories()) {
_addAction(tr::lng_boosts_title(tr::now), [=] {
if (const auto strong = weak.get()) {
controller->showSection(Info::Boosts::Make(peer));