From bd490421e8b5226fc127f89b31cf153e4cece2da Mon Sep 17 00:00:00 2001 From: John Preston Date: Fri, 23 Dec 2022 14:32:46 +0400 Subject: [PATCH] No "Who Viewed" in case of hidden members. --- Telegram/SourceFiles/api/api_who_reacted.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/api/api_who_reacted.cpp b/Telegram/SourceFiles/api/api_who_reacted.cpp index 7ebabbb72..82b178b87 100644 --- a/Telegram/SourceFiles/api/api_who_reacted.cpp +++ b/Telegram/SourceFiles/api/api_who_reacted.cpp @@ -571,7 +571,10 @@ bool WhoReadExists(not_null item) { const auto peer = history->peer; const auto chat = peer->asChat(); const auto megagroup = peer->asMegagroup(); - if ((!chat && !megagroup) || peer->isForum()) { + if ((!chat && !megagroup) + || peer->isForum() + || (megagroup + && (megagroup->flags() & ChannelDataFlag::ParticipantsHidden))) { return false; } const auto &appConfig = peer->session().account().appConfig();