Fix warning.
GitOrigin-RevId: 220da64c77eb25f99fa620ff72065a31d0674117
This commit is contained in:
parent
0b54ca677b
commit
23cd9f656f
@ -16216,23 +16216,23 @@ void MessagesManager::on_secret_message_media_uploaded(DialogId dialog_id, Messa
|
|||||||
// even message has already been deleted
|
// even message has already been deleted
|
||||||
on_media_message_ready_to_send(
|
on_media_message_ready_to_send(
|
||||||
dialog_id, m->message_id,
|
dialog_id, m->message_id,
|
||||||
PromiseCreator::lambda([this, dialog_id, secret_input_media = std::move(secret_input_media), file_id,
|
PromiseCreator::lambda(
|
||||||
thumbnail_file_id](Result<Message *> result) mutable {
|
[this, dialog_id, secret_input_media = std::move(secret_input_media)](Result<Message *> result) mutable {
|
||||||
if (result.is_error() || G()->close_flag()) {
|
if (result.is_error() || G()->close_flag()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
auto m = result.move_as_ok();
|
auto m = result.move_as_ok();
|
||||||
CHECK(m != nullptr);
|
CHECK(m != nullptr);
|
||||||
CHECK(!secret_input_media.empty());
|
CHECK(!secret_input_media.empty());
|
||||||
LOG(INFO) << "Send secret media from " << m->message_id << " in " << dialog_id << " in reply to "
|
LOG(INFO) << "Send secret media from " << m->message_id << " in " << dialog_id << " in reply to "
|
||||||
<< m->reply_to_message_id;
|
<< m->reply_to_message_id;
|
||||||
int64 random_id = begin_send_message(dialog_id, m);
|
int64 random_id = begin_send_message(dialog_id, m);
|
||||||
send_closure(td_->create_net_actor<SendSecretMessageActor>(), &SendSecretMessageActor::send, dialog_id,
|
send_closure(td_->create_net_actor<SendSecretMessageActor>(), &SendSecretMessageActor::send, dialog_id,
|
||||||
m->reply_to_random_id, m->ttl, "", std::move(secret_input_media),
|
m->reply_to_random_id, m->ttl, "", std::move(secret_input_media),
|
||||||
vector<tl_object_ptr<secret_api::MessageEntity>>(), m->via_bot_user_id, m->media_album_id,
|
vector<tl_object_ptr<secret_api::MessageEntity>>(), m->via_bot_user_id, m->media_album_id,
|
||||||
random_id);
|
random_id);
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
||||||
void MessagesManager::on_upload_message_media_success(DialogId dialog_id, MessageId message_id,
|
void MessagesManager::on_upload_message_media_success(DialogId dialog_id, MessageId message_id,
|
||||||
|
Reference in New Issue
Block a user