2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-08-31 06:26:18 +00:00

Started Lottie::CacheState class.

This commit is contained in:
John Preston
2019-06-26 16:18:00 +02:00
parent 35bc2cc2a5
commit 10772f4ac5
11 changed files with 449 additions and 72 deletions

View File

@@ -1100,11 +1100,8 @@ std::unique_ptr<Lottie::Animation> LottieFromDocument(
data,
filepath,
box);
} else if (!data.isEmpty()) {
return Lottie::FromData(data);
} else {
return Lottie::FromFile(filepath);
}
return Lottie::FromContent(data, filepath);
}
} // namespace Stickers