mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +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 {
|
bool PeerData::canRevokeFullHistory() const {
|
||||||
return isUser()
|
if (const auto user = asUser()) {
|
||||||
&& !isSelf()
|
return !isSelf()
|
||||||
&& session().serverConfig().revokePrivateInbox
|
&& (!user->isBot() || user->isSupport())
|
||||||
&& (session().serverConfig().revokePrivateTimeLimit == 0x7FFFFFFF);
|
&& session().serverConfig().revokePrivateInbox
|
||||||
|
&& (session().serverConfig().revokePrivateTimeLimit == 0x7FFFFFFF);
|
||||||
|
}
|
||||||
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool PeerData::slowmodeApplied() const {
|
bool PeerData::slowmodeApplied() const {
|
||||||
|
|
Loading…
Add table
Reference in a new issue