Added ability to create statistics info layer with story id.

This commit is contained in:
23rd
2023-11-17 04:59:20 +03:00
committed by John Preston
parent f88eee8047
commit 34d0dac351
11 changed files with 62 additions and 42 deletions
@@ -1008,7 +1008,8 @@ void Filler::addViewStatistics() {
if (channel->flags() & ChannelDataFlag::CanGetStatistics) {
_addAction(tr::lng_stats_title(tr::now), [=] {
if (const auto strong = weak.get()) {
controller->showSection(Info::Statistics::Make(peer, {}));
using namespace Info;
controller->showSection(Statistics::Make(peer, {}, {}));
}
}, &st::menuIconStats);
}