mirror of
https://github.com/Qz3rK/tdesktop.git
synced 2026-07-03 14:15:08 +02:00
Disable revoke all history for bots.
This commit is contained in:
@@ -818,10 +818,13 @@ bool PeerData::amAnonymous() const {
|
||||
}
|
||||
|
||||
bool PeerData::canRevokeFullHistory() const {
|
||||
return isUser()
|
||||
&& !isSelf()
|
||||
&& session().serverConfig().revokePrivateInbox
|
||||
&& (session().serverConfig().revokePrivateTimeLimit == 0x7FFFFFFF);
|
||||
if (const auto user = asUser()) {
|
||||
return !isSelf()
|
||||
&& (!user->isBot() || user->isSupport())
|
||||
&& session().serverConfig().revokePrivateInbox
|
||||
&& (session().serverConfig().revokePrivateTimeLimit == 0x7FFFFFFF);
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
bool PeerData::slowmodeApplied() const {
|
||||
|
||||
Reference in New Issue
Block a user