Ignore MESSAGE_ID_INVALID in GetPollResultsQuery.

GitOrigin-RevId: 08083ab18dd4273e1967dbde5225f5999bc074bf
This commit is contained in:
levlam 2019-03-16 05:32:02 +03:00
parent 9f9d429832
commit 0bf312ffd5

View File

@ -77,7 +77,8 @@ class GetPollResultsQuery : public Td::ResultHandler {
}
void on_error(uint64 id, Status status) override {
if (!td->messages_manager_->on_get_dialog_error(dialog_id_, status, "GetPollResultsQuery")) {
if (!td->messages_manager_->on_get_dialog_error(dialog_id_, status, "GetPollResultsQuery") &&
status.message() != "MESSAGE_ID_INVALID") {
LOG(ERROR) << "Receive " << status << ", while trying to get results of " << poll_id_;
}
promise_.set_error(std::move(status));