mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-03 07:56:03 +00:00
Save video thumbnail location to local storage.
This commit is contained in:
@@ -716,6 +716,10 @@ const ImageLocation &DocumentData::thumbnailLocation() const {
|
||||
return _thumbnailLocation;
|
||||
}
|
||||
|
||||
int DocumentData::thumbnailByteSize() const {
|
||||
return _thumbnailByteSize;
|
||||
}
|
||||
|
||||
bool DocumentData::hasVideoThumbnail() const {
|
||||
return _videoThumbnailLocation.valid()
|
||||
&& (_videoThumbnailLocation.width() > 0)
|
||||
@@ -775,6 +779,10 @@ const ImageLocation &DocumentData::videoThumbnailLocation() const {
|
||||
return _videoThumbnailLocation;
|
||||
}
|
||||
|
||||
int DocumentData::videoThumbnailByteSize() const {
|
||||
return _videoThumbnailByteSize;
|
||||
}
|
||||
|
||||
Storage::Cache::Key DocumentData::goodThumbnailCacheKey() const {
|
||||
return Data::DocumentThumbCacheKey(_dc, id);
|
||||
}
|
||||
|
Reference in New Issue
Block a user