mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-03 07:56:03 +00:00
Fix caching for large sticker area.
This commit is contained in:
@@ -1049,7 +1049,10 @@ QSize MediaPreviewWidget::currentDimensions() const {
|
||||
void MediaPreviewWidget::setupLottie() {
|
||||
Expects(_document != nullptr);
|
||||
|
||||
_lottie = Lottie::FromContent(_document->data(), _document->filepath());
|
||||
_lottie = Lottie::FromContent(
|
||||
_document->data(),
|
||||
_document->filepath(),
|
||||
Lottie::FrameRequest{ currentDimensions() * cIntRetinaFactor() });
|
||||
|
||||
_lottie->updates(
|
||||
) | rpl::start_with_next_error([=](Lottie::Update update) {
|
||||
|
Reference in New Issue
Block a user