TDLib 1.7: Video thumbnail is a 'file' not a 'video' anymore
This commit is contained in:
parent
44510901ac
commit
2cd86a95d9
1 changed files with 3 additions and 3 deletions
|
@ -90,9 +90,9 @@ Item {
|
||||||
videoMessageComponent.videoType = videoMessageComponent.isVideoNote ? "video" : videoData['@type'];
|
videoMessageComponent.videoType = videoMessageComponent.isVideoNote ? "video" : videoData['@type'];
|
||||||
videoFileId = videoData[videoType].id;
|
videoFileId = videoData[videoType].id;
|
||||||
if (typeof videoData.thumbnail !== "undefined") {
|
if (typeof videoData.thumbnail !== "undefined") {
|
||||||
previewFileId = videoData.thumbnail.photo.id;
|
previewFileId = videoData.thumbnail.file.id;
|
||||||
if (videoData.thumbnail.photo.local.is_downloading_completed) {
|
if (videoData.thumbnail.file.local.is_downloading_completed) {
|
||||||
placeholderImage.source = videoData.thumbnail.photo.local.path;
|
placeholderImage.source = videoData.thumbnail.file.local.path;
|
||||||
} else {
|
} else {
|
||||||
tdLibWrapper.downloadFile(previewFileId);
|
tdLibWrapper.downloadFile(previewFileId);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue