mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 22:27:20 +02:00
Clear history allowed when delete channel allowed.
This commit is contained in:
parent
69f469a0f9
commit
1c720af9bc
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue