Do not animate unknown stickers before they are sent.
GitOrigin-RevId: 333cca74ec642ede27c4d2f5fc5794eb776990a3
This commit is contained in:
parent
fb3a4b49aa
commit
f301359deb
@ -1564,9 +1564,8 @@ static Result<InputMessageContent> create_input_message_content(
|
|||||||
}
|
}
|
||||||
case td_api::inputMessageSticker::ID: {
|
case td_api::inputMessageSticker::ID: {
|
||||||
auto input_sticker = static_cast<td_api::inputMessageSticker *>(input_message_content.get());
|
auto input_sticker = static_cast<td_api::inputMessageSticker *>(input_message_content.get());
|
||||||
td->stickers_manager_->create_sticker(file_id, thumbnail,
|
td->stickers_manager_->create_sticker(
|
||||||
get_dimensions(input_sticker->width_, input_sticker->height_), nullptr,
|
file_id, thumbnail, get_dimensions(input_sticker->width_, input_sticker->height_), nullptr, false, nullptr);
|
||||||
mime_type == "application/x-tgsticker", nullptr);
|
|
||||||
|
|
||||||
content = make_unique<MessageSticker>(file_id);
|
content = make_unique<MessageSticker>(file_id);
|
||||||
break;
|
break;
|
||||||
|
@ -1939,9 +1939,7 @@ void StickersManager::create_sticker(FileId file_id, PhotoSize thumbnail, Dimens
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (s->set_id.is_valid()) {
|
|
||||||
s->is_animated = is_animated;
|
s->is_animated = is_animated;
|
||||||
}
|
|
||||||
on_get_sticker(std::move(s), sticker != nullptr);
|
on_get_sticker(std::move(s), sticker != nullptr);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user