Fix failed to send message message_id.

GitOrigin-RevId: 9fba0bd1fb7ce8d396c0012c9537155dc20f1054
This commit is contained in:
levlam 2018-02-20 03:14:47 +03:00
parent 4304fcfd89
commit 2576b10082
2 changed files with 5 additions and 1 deletions

View File

@ -18548,6 +18548,10 @@ void MessagesManager::fail_send_message(FullMessageId full_message_id, int error
}
auto new_message_id = MessageId(old_message_id.get() - MessageId::TYPE_YET_UNSENT + MessageId::TYPE_LOCAL);
if (get_message_force(d, new_message_id) != nullptr || d->deleted_message_ids.count(new_message_id)) {
new_message_id = get_next_local_message_id(d);
}
message->message_id = new_message_id;
CHECK(message->message_id.is_valid());
message->random_y = get_random_y(message->message_id);

View File

@ -68,7 +68,7 @@ class GenAuthKeyActor : public Actor {
ActorOwn<mtproto::HandshakeActor> child_;
void start_up() override {
// Bug in in android clang and MSVC?
// Bug in Android clang and MSVC
// std::tuple<Result<int>> b(std::forward_as_tuple(Result<int>()));
callback_->request_raw_connection(PromiseCreator::lambda(