mirror of https://github.com/procxx/kepka.git
Don't show revoke checkbox in Saved Messages.
This commit is contained in:
parent
4af9c801ae
commit
0c34ba638c
Telegram/SourceFiles/data
|
@ -698,6 +698,7 @@ Data::RestrictionCheckResult PeerData::amRestricted(
|
|||
|
||||
bool PeerData::canRevokeFullHistory() const {
|
||||
return isUser()
|
||||
&& !isSelf()
|
||||
&& Global::RevokePrivateInbox()
|
||||
&& (Global::RevokePrivateTimeLimit() == 0x7FFFFFFF);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue