mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-01 23:15:59 +00:00
Allow clearing history in megagroups.
This commit is contained in:
@@ -903,9 +903,7 @@ bool PeerData::canRevokeFullHistory() const {
|
||||
} else if (const auto chat = asChat()) {
|
||||
return chat->amCreator();
|
||||
} else if (const auto megagroup = asMegagroup()) {
|
||||
return megagroup->amCreator()
|
||||
&& megagroup->membersCountKnown()
|
||||
&& megagroup->canDelete();
|
||||
return megagroup->amCreator();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user