Fix file reference repair for bots.
GitOrigin-RevId: a73a960140e6b6866d8e53dd312a25258ea03d95
This commit is contained in:
parent
e9118c7bd5
commit
bc5415ba88
@ -18838,7 +18838,7 @@ void MessagesManager::do_send_message(DialogId dialog_id, const Message *m, vect
|
|||||||
on_secret_message_media_uploaded(dialog_id, m, std::move(secret_input_media), file_id, thumbnail_file_id);
|
on_secret_message_media_uploaded(dialog_id, m, std::move(secret_input_media), file_id, thumbnail_file_id);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
auto input_media = get_input_media(content, td_, m->ttl, td_->auth_manager_->is_bot());
|
auto input_media = get_input_media(content, td_, m->ttl, td_->auth_manager_->is_bot() && bad_parts.empty());
|
||||||
if (input_media == nullptr) {
|
if (input_media == nullptr) {
|
||||||
if (content_type == MessageContentType::Game || content_type == MessageContentType::Poll) {
|
if (content_type == MessageContentType::Game || content_type == MessageContentType::Poll) {
|
||||||
return;
|
return;
|
||||||
|
Reference in New Issue
Block a user