mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Use video thumbnail in media preview.
This commit is contained in:
@@ -434,8 +434,9 @@ bool MainWindow::showMediaPreview(
|
||||
Data::FileOrigin origin,
|
||||
not_null<DocumentData*> document) {
|
||||
const auto media = document->activeMediaView();
|
||||
const auto preview = Data::VideoPreviewState(media.get());
|
||||
if (!document->sticker()
|
||||
&& (!document->isAnimation() || !media || !media->loaded())) {
|
||||
&& (!document->isAnimation() || !preview.loaded())) {
|
||||
return false;
|
||||
}
|
||||
if (!_mediaPreview) {
|
||||
|
Reference in New Issue
Block a user