Don't show revoke checkbox in Saved Messages.

This commit is contained in:
John Preston 2019-09-27 20:01:36 +03:00
parent 4af9c801ae
commit 0c34ba638c
1 changed files with 1 additions and 0 deletions

View File

@ -698,6 +698,7 @@ Data::RestrictionCheckResult PeerData::amRestricted(
bool PeerData::canRevokeFullHistory() const {
return isUser()
&& !isSelf()
&& Global::RevokePrivateInbox()
&& (Global::RevokePrivateTimeLimit() == 0x7FFFFFFF);
}