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:
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user