mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 14:38:15 +00:00
Clear history allowed when delete channel allowed.
This commit is contained in:
@@ -903,7 +903,9 @@ bool PeerData::canRevokeFullHistory() const {
|
||||
} else if (const auto chat = asChat()) {
|
||||
return chat->amCreator();
|
||||
} else if (const auto megagroup = asMegagroup()) {
|
||||
return megagroup->amCreator();
|
||||
return megagroup->amCreator()
|
||||
&& megagroup->membersCountKnown()
|
||||
&& megagroup->canDelete();
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
Reference in New Issue
Block a user