Allow bots to delete unknown messages.

GitOrigin-RevId: f9cecdf316fb28aacbbef657eaf83554563e6f5e
This commit is contained in:
levlam 2020-01-02 17:47:32 +03:00
parent ece4fd0e93
commit 76e363cbe9

View File

@ -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;