From 76e363cbe97cb6a3118aa8b92645405168cc1930 Mon Sep 17 00:00:00 2001 From: levlam Date: Thu, 2 Jan 2020 17:47:32 +0300 Subject: [PATCH] Allow bots to delete unknown messages. GitOrigin-RevId: f9cecdf316fb28aacbbef657eaf83554563e6f5e --- td/telegram/MessagesManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td/telegram/MessagesManager.cpp b/td/telegram/MessagesManager.cpp index 61fd63a4..9054c395 100644 --- a/td/telegram/MessagesManager.cpp +++ b/td/telegram/MessagesManager.cpp @@ -8454,7 +8454,7 @@ bool MessagesManager::can_delete_channel_message(DialogParticipantStatus status, bool MessagesManager::can_revoke_message(DialogId dialog_id, const Message *m) const { if (m == nullptr) { - return false; + return true; } if (m->message_id.is_local()) { return false;