Fix lost promise in ReportChannelSpamQuery.

GitOrigin-RevId: 61abcd89b6753d6f863f1dd72bc45b30a1f09ec7
This commit is contained in:
levlam 2019-05-09 15:22:47 +03:00
parent c2a370262c
commit 90ab672030

View File

@ -1227,7 +1227,7 @@ class ReportChannelSpamQuery : public Td::ResultHandler {
void on_error(uint64 id, Status status) override {
td->contacts_manager_->on_get_channel_error(channel_id_, status, "ReportChannelSpamQuery");
status.ignore();
promise_.set_error(std::move(status));
}
};