Really avoid force_reuse even for message photos.
This commit is contained in:
parent
4e78b4b65f
commit
75a021e836
@ -2075,14 +2075,14 @@ Result<InputMessageContent> get_input_message_content(
|
||||
auto input_message = static_cast<td_api::inputMessageDocument *>(input_message_content.get());
|
||||
auto file_type = input_message->disable_content_type_detection_ ? FileType::DocumentAsFile : FileType::Document;
|
||||
r_file_id =
|
||||
td->file_manager_->get_input_file_id(file_type, input_message->document_, dialog_id, false, is_secret);
|
||||
td->file_manager_->get_input_file_id(file_type, input_message->document_, dialog_id, false, is_secret, true);
|
||||
input_thumbnail = std::move(input_message->thumbnail_);
|
||||
break;
|
||||
}
|
||||
case td_api::inputMessagePhoto::ID: {
|
||||
auto input_message = static_cast<td_api::inputMessagePhoto *>(input_message_content.get());
|
||||
r_file_id = td->file_manager_->get_input_file_id(FileType::Photo, input_message->photo_, dialog_id, false,
|
||||
is_secret, false, false, true);
|
||||
r_file_id =
|
||||
td->file_manager_->get_input_file_id(FileType::Photo, input_message->photo_, dialog_id, false, is_secret);
|
||||
input_thumbnail = std::move(input_message->thumbnail_);
|
||||
if (!input_message->added_sticker_file_ids_.empty()) {
|
||||
sticker_file_ids = td->stickers_manager_->get_attached_sticker_file_ids(input_message->added_sticker_file_ids_);
|
||||
|
Loading…
Reference in New Issue
Block a user