mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-02-25 01:50:36 +00:00
Don't suggest shrinking media of direct photo links.
This commit is contained in:
parent
eaf30d58be
commit
e64a096dca
@ -254,7 +254,13 @@ bool WebPageData::applyChanges(
|
||||
}
|
||||
return QString();
|
||||
}();
|
||||
if (newDocument || !newCollage.items.empty() || !newPhoto) {
|
||||
const auto hasSiteName = !resultSiteName.isEmpty() ? 1 : 0;
|
||||
const auto hasTitle = !resultTitle.isEmpty() ? 1 : 0;
|
||||
const auto hasDescription = !newDescription.text.isEmpty() ? 1 : 0;
|
||||
if (newDocument
|
||||
|| !newCollage.items.empty()
|
||||
|| !newPhoto
|
||||
|| (hasSiteName + hasTitle + hasDescription < 2)) {
|
||||
newHasLargeMedia = false;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user