mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-15 21:57:10 +02:00
No "Who Viewed" in case of hidden members.
This commit is contained in:
parent
b9b6d4dba1
commit
bd490421e8
1 changed files with 4 additions and 1 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue