mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 22:46:10 +00:00
Add revoking of full history.
This commit is contained in:
@@ -648,6 +648,12 @@ Data::RestrictionCheckResult PeerData::amRestricted(
|
||||
return Result::Allowed();
|
||||
}
|
||||
|
||||
bool PeerData::canRevokeFullHistory() const {
|
||||
return isUser()
|
||||
&& Global::RevokePrivateInbox()
|
||||
&& (Global::RevokePrivateTimeLimit() == 0x7FFFFFFF);
|
||||
}
|
||||
|
||||
namespace Data {
|
||||
|
||||
std::vector<ChatRestrictions> ListOfRestrictions() {
|
||||
|
Reference in New Issue
Block a user