From dc8c6fd185cecd4ff84263c1a6040b9b8fef76e8 Mon Sep 17 00:00:00 2001 From: morethanwords Date: Thu, 7 Oct 2021 18:24:09 +0400 Subject: [PATCH] Fix downloading document that cannot be played --- src/components/wrappers.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/wrappers.ts b/src/components/wrappers.ts index cf5efc0f..8bb5bdfc 100644 --- a/src/components/wrappers.ts +++ b/src/components/wrappers.ts @@ -675,7 +675,7 @@ export function wrapDocument({message, withTime, fontWeight, voiceAsMusic, showS window.open(url); }, rootScope.settings.animationsEnabled ? 250 : 0); }); - } else if(MEDIA_MIME_TYPES_SUPPORTED.has(doc.mime_type)) { + } else if(MEDIA_MIME_TYPES_SUPPORTED.has(doc.mime_type) && doc.thumbs?.length) { download = appDocsManager.downloadDoc(doc, queueId); } else { download = appDocsManager.saveDocFile(doc, queueId);