mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-07-25 06:54:43 +00:00
No "Who Viewed" in case of hidden members.
This commit is contained in:
@@ -571,7 +571,10 @@ bool WhoReadExists(not_null<HistoryItem*> 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();
|
||||
|
||||
Reference in New Issue
Block a user