mirror of
https://github.com/vale981/tdesktop
synced 2025-03-04 17:21:40 -05:00
Don't show revoke checkbox in Saved Messages.
This commit is contained in:
parent
4af9c801ae
commit
0c34ba638c
1 changed files with 1 additions and 0 deletions
|
@ -698,6 +698,7 @@ Data::RestrictionCheckResult PeerData::amRestricted(
|
|||
|
||||
bool PeerData::canRevokeFullHistory() const {
|
||||
return isUser()
|
||||
&& !isSelf()
|
||||
&& Global::RevokePrivateInbox()
|
||||
&& (Global::RevokePrivateTimeLimit() == 0x7FFFFFFF);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue