mirror of
https://github.com/kotatogram/kotatogram-desktop
synced 2025-09-01 23:25:15 +00:00
@@ -949,6 +949,12 @@ bool HistoryItem::canDeleteForEveryone(const QDateTime &cur) const {
|
||||
}
|
||||
if (history()->peer->isChannel()) {
|
||||
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()) {
|
||||
return false;
|
||||
|
Reference in New Issue
Block a user