mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-19 07:37:11 +02:00
Disable revoke all history for bots.
This commit is contained in:
parent
a1a845dbf1
commit
9a96298ef7
1 changed files with 7 additions and 4 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Reference in a new issue