Fix misprint.

This commit is contained in:
levlam 2022-01-26 17:25:55 +03:00
parent 97e0288363
commit 262d63564d
2 changed files with 2 additions and 1 deletions

View File

@ -23864,6 +23864,7 @@ void MessagesManager::set_message_reaction(FullMessageId full_message_id, string
send_update_message_interaction_info(dialog_id, m);
on_message_changed(d, m, true, "set_message_reaction");
// TODO invoke_after, cancel previous queries, log event
::td::set_message_reaction(td_, full_message_id, std::move(reaction), is_big, std::move(promise));
}

View File

@ -5585,7 +5585,7 @@ Result<std::tuple<FileId, bool, bool, StickerFormat>> StickersManager::prepare_i
Result<std::tuple<FileId, bool, bool, StickerFormat>> StickersManager::prepare_input_file(
const tl_object_ptr<td_api::InputFile> &input_file, StickerFormat format, bool for_thumbnail) {
auto file_type =
format == StickerFormat::Tgs || format == StickerFormat::Tgs ? FileType::Sticker : FileType::Document;
format == StickerFormat::Webm || format == StickerFormat::Tgs ? FileType::Sticker : FileType::Document;
auto r_file_id = td_->file_manager_->get_input_file_id(file_type, input_file, DialogId(), for_thumbnail, false);
if (r_file_id.is_error()) {
return Status::Error(400, r_file_id.error().message());