diff --git a/td/telegram/ContactsManager.cpp b/td/telegram/ContactsManager.cpp index ccd57eac6..f3bd2725a 100644 --- a/td/telegram/ContactsManager.cpp +++ b/td/telegram/ContactsManager.cpp @@ -7318,7 +7318,7 @@ void ContactsManager::delete_chat_participant(ChatId chat_id, UserId user_id, bo if (c->status.is_left()) { if (user_id == my_id) { if (revoke_messages) { - return td_->messages_manager_->delete_dialog_history(dialog_id, true, true, std::move(promise)); + return td_->messages_manager_->delete_dialog_history(DialogId(chat_id), true, true, std::move(promise)); } return promise.set_value(Unit()); } else {