mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2026-08-03 18:49:30 +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