2
0
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:
John Preston
2022-06-20 11:18:38 +04:00
parent 29c61635de
commit ff51bf81f3
3 changed files with 3 additions and 6 deletions

View File

@@ -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;
}