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

Fix minimal unwrapped message height as userpic size.

Fixes #25354.
This commit is contained in:
John Preston
2022-12-06 13:04:38 +04:00
parent 48148a8cc3
commit 7ad26a0fca

View File

@@ -47,7 +47,7 @@ QSize UnwrappedMedia::countOptimalSize() {
_content->refreshLink();
const auto optimal = _content->countOptimalSize();
auto maxWidth = optimal.width();
const auto minimal = st::emojiSize;
const auto minimal = std::max(st::emojiSize, st::msgPhotoSize);
auto minHeight = std::max(optimal.height(), minimal);
if (_parent->media() == this) {
const auto item = _parent->data();