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

Allow WebDocument video thumbnails.

This commit is contained in:
John Preston
2020-05-22 19:23:19 +04:00
parent 0834920db8
commit 3f26fc9f55
5 changed files with 40 additions and 16 deletions

View File

@@ -721,9 +721,7 @@ int DocumentData::thumbnailByteSize() const {
}
bool DocumentData::hasVideoThumbnail() const {
return _videoThumbnailLocation.valid()
&& (_videoThumbnailLocation.width() > 0)
&& (_videoThumbnailLocation.height() > 0);
return _videoThumbnailLocation.valid();
}
bool DocumentData::videoThumbnailLoading() const {