2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-02 23:45:44 +00:00

Support animated stickers in suggestions.

This commit is contained in:
John Preston
2019-07-02 16:29:26 +02:00
parent 848ea16eef
commit 0dd1b4eae6
8 changed files with 210 additions and 52 deletions

View File

@@ -1154,10 +1154,11 @@ auto LottieFromDocument(
std::unique_ptr<Lottie::SinglePlayer> LottiePlayerFromDocument(
not_null<DocumentData*> document,
LottieSize sizeTag,
QSize box) {
const auto method = [](auto &&...args) {
QSize box,
std::shared_ptr<Lottie::FrameRenderer> renderer) {
const auto method = [&](auto &&...args) {
return std::make_unique<Lottie::SinglePlayer>(
std::forward<decltype(args)>(args)...);
std::forward<decltype(args)>(args)..., std::move(renderer));
};
return LottieFromDocument(method, document, sizeTag, box);
}