Possible fix for unnecessary video messages resizing

This commit is contained in:
Eric Kotato 2020-01-19 09:09:40 +03:00
parent 1d4bbd6f81
commit e2c8eaf191

View file

@ -42,7 +42,7 @@ QSize UnwrappedMedia::countOptimalSize() {
_content->refreshLink();
_contentSize = NonEmptySize(DownscaledSize(
_content->size(),
{ st::maxStickerSize, StickerHeight() }));
{ st::maxStickerSize, st::maxStickerSize }));
auto maxWidth = _contentSize.width();
const auto minimal = st::largeEmojiSize + 2 * st::largeEmojiOutline;
auto minHeight = std::max(_contentSize.height(), minimal);