Fix repeated call to on_send_message_ok.

GitOrigin-RevId: c6eb79cf4dd37657e3ef50a5597938c4a02ca9af
This commit is contained in:
levlam 2018-02-20 04:17:06 +03:00
parent d7377b2a20
commit d7f48f849a
2 changed files with 2 additions and 5 deletions

View File

@ -1595,8 +1595,6 @@ void SecretChatActor::on_outbound_send_message_result(NetQueryPtr query, Promise
dc_id, key_fingerprint);
};
}));
context_->on_send_message_ok(state->message->random_id, MessageId(ServerMessageId(state->message->message_id)),
sent->date_, std::move(sent->file_), std::move(send_message_finish_promise));
state->send_result_ = [this, random_id = state->message->random_id,
message_id = MessageId(ServerMessageId(state->message->message_id)), date = sent->date_,
@ -1605,7 +1603,6 @@ void SecretChatActor::on_outbound_send_message_result(NetQueryPtr query, Promise
};
state->send_result_(std::move(send_message_finish_promise));
return;
return;
}
}
}

View File

@ -936,9 +936,9 @@ class CliClient final : public Actor {
}
static td_api::object_ptr<td_api::Object> execute(tl_object_ptr<td_api::Function> f) {
LOG(INFO) << "Execute request " << to_string(f);
LOG(INFO) << "Execute request: " << to_string(f);
auto res = ClientActor::execute(std::move(f));
LOG(INFO) << "Execute response" << to_string(res);
LOG(INFO) << "Execute response: " << to_string(res);
return res;
}