mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-25 01:50:36 +00:00
Don't shrink non-photo media.
This commit is contained in:
parent
04f040c9c5
commit
94ac9f93fa
@ -254,6 +254,9 @@ bool WebPageData::applyChanges(
|
||||
}
|
||||
return QString();
|
||||
}();
|
||||
if (newDocument || !newCollage.items.empty() || !newPhoto) {
|
||||
newHasLargeMedia = false;
|
||||
}
|
||||
|
||||
if (type == newType
|
||||
&& url == resultUrl
|
||||
|
@ -242,7 +242,7 @@ QSize WebPage::countOptimalSize() {
|
||||
using Flag = MediaWebPageFlag;
|
||||
if (_data->hasLargeMedia && (_flags & Flag::ForceLargeMedia)) {
|
||||
_asArticle = 0;
|
||||
} else if (_data->photo && (_flags & Flag::ForceSmallMedia)) {
|
||||
} else if (_data->hasLargeMedia && (_flags & Flag::ForceSmallMedia)) {
|
||||
_asArticle = 1;
|
||||
} else {
|
||||
_asArticle = _data->computeDefaultSmallMedia();
|
||||
|
Loading…
Reference in New Issue
Block a user