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

Added initial entry point for channel statistics.

This commit is contained in:
23rd
2023-04-26 21:49:51 +03:00
committed by John Preston
parent ad8f8513c3
commit b0a65885c9
3 changed files with 14 additions and 0 deletions

View File

@@ -283,6 +283,7 @@ private:
void addSearchTopics();
void addDeleteTopic();
void addVideoChat();
void addViewStatistics();
not_null<SessionController*> _controller;
Dialogs::EntryState _request;
@@ -997,6 +998,15 @@ void Filler::addManageChat() {
}, &st::menuIconManage);
}
void Filler::addViewStatistics() {
if (const auto channel = _peer->asChannel()) {
if (channel->flags() & ChannelDataFlag::CanGetStatistics) {
_addAction(tr::lng_stats_title(tr::now), [=] {
}, nullptr);
}
}
}
void Filler::addCreatePoll() {
const auto can = _topic
? Data::CanSend(_topic, ChatRestriction::SendPolls)
@@ -1237,6 +1247,7 @@ void Filler::fillProfileActions() {
addGiftPremium();
addBotToGroup();
addNewMembers();
addViewStatistics();
addStoryArchive();
addManageChat();
addTopicLink();