Fix sticker image caching in case cell size changes.

This commit is contained in:
John Preston
2022-03-31 14:56:35 +04:00
parent b1e66279d5
commit f6559c01e4
2 changed files with 11 additions and 2 deletions
@@ -285,7 +285,7 @@ QSize ComputeStickerSize(not_null<DocumentData*> document, QSize box) {
}
const auto ratio = style::DevicePixelRatio();
const auto request = Lottie::FrameRequest{ box * ratio };
return HistoryView::NonEmptySize(request.size(dimensions, true) / ratio);
return HistoryView::NonEmptySize(request.size(dimensions, 8) / ratio);
}
} // namespace ChatHelpers