mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-03 08:05:12 +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()) {
|
} else if (const auto chat = asChat()) {
|
||||||
return chat->amCreator();
|
return chat->amCreator();
|
||||||
} else if (const auto megagroup = asMegagroup()) {
|
} else if (const auto megagroup = asMegagroup()) {
|
||||||
return megagroup->amCreator();
|
return megagroup->amCreator()
|
||||||
|
&& megagroup->membersCountKnown()
|
||||||
|
&& megagroup->canDelete();
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user