From 2cd86a95d9f3ec2376ba087c8d141e2a80ca3b53 Mon Sep 17 00:00:00 2001 From: Sebastian Wolf Date: Mon, 7 Dec 2020 22:24:07 +0100 Subject: [PATCH] TDLib 1.7: Video thumbnail is a 'file' not a 'video' anymore --- qml/components/VideoPreview.qml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/qml/components/VideoPreview.qml b/qml/components/VideoPreview.qml index 9aa87a3..25572ce 100644 --- a/qml/components/VideoPreview.qml +++ b/qml/components/VideoPreview.qml @@ -90,9 +90,9 @@ Item { videoMessageComponent.videoType = videoMessageComponent.isVideoNote ? "video" : videoData['@type']; videoFileId = videoData[videoType].id; if (typeof videoData.thumbnail !== "undefined") { - previewFileId = videoData.thumbnail.photo.id; - if (videoData.thumbnail.photo.local.is_downloading_completed) { - placeholderImage.source = videoData.thumbnail.photo.local.path; + previewFileId = videoData.thumbnail.file.id; + if (videoData.thumbnail.file.local.is_downloading_completed) { + placeholderImage.source = videoData.thumbnail.file.local.path; } else { tdLibWrapper.downloadFile(previewFileId); }