Fix handle_errors_ check.

This commit is contained in:
levlam 2021-10-30 21:57:43 +03:00
parent d8e3fd2ee6
commit b4324ee88c
1 changed files with 1 additions and 1 deletions

View File

@ -2265,7 +2265,7 @@ class SearchMessagesQuery final : public Td::ResultHandler {
}
void on_error(uint64 id, Status status) final {
if (!handle_errors_) {
if (handle_errors_) {
td->messages_manager_->on_get_dialog_error(dialog_id_, status, "SearchMessagesQuery");
}
td->messages_manager_->on_failed_dialog_messages_search(dialog_id_, random_id_);