mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
parent
5b7059dccd
commit
2e972fb678
1 changed files with 6 additions and 0 deletions
|
@ -949,6 +949,12 @@ bool HistoryItem::canDeleteForEveryone(const QDateTime &cur) const {
|
||||||
}
|
}
|
||||||
if (history()->peer->isChannel()) {
|
if (history()->peer->isChannel()) {
|
||||||
return false;
|
return false;
|
||||||
|
} else if (auto user = history()->peer->asUser()) {
|
||||||
|
// Bots receive all messages and there is no sense in revoking them.
|
||||||
|
// See https://github.com/telegramdesktop/tdesktop/issues/3818
|
||||||
|
if (user->botInfo) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (!toHistoryMessage()) {
|
if (!toHistoryMessage()) {
|
||||||
return false;
|
return false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue