From b7a9aa9a0e237986899794241cee572603461389 Mon Sep 17 00:00:00 2001 From: 23rd <23rd@vivaldi.net> Date: Sat, 21 Oct 2023 11:05:26 +0300 Subject: [PATCH] Fixed processing of empty chart on message statistic. --- Telegram/SourceFiles/data/data_statistics.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/data/data_statistics.h b/Telegram/SourceFiles/data/data_statistics.h index 045dae70ee..ce59e4d58f 100644 --- a/Telegram/SourceFiles/data/data_statistics.h +++ b/Telegram/SourceFiles/data/data_statistics.h @@ -105,7 +105,7 @@ struct SupergroupStatistics final { struct MessageStatistics final { explicit operator bool() const { - return !messageInteractionGraph.chart.empty(); + return !messageInteractionGraph.chart.empty() || views; } Data::StatisticalGraph messageInteractionGraph; int publicForwards = 0;