Fix downloading document that cannot be played

This commit is contained in:
morethanwords 2021-10-07 18:24:09 +04:00
parent 110fd3d90d
commit dc8c6fd185

View File

@ -675,7 +675,7 @@ export function wrapDocument({message, withTime, fontWeight, voiceAsMusic, showS
window.open(url); window.open(url);
}, rootScope.settings.animationsEnabled ? 250 : 0); }, 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); download = appDocsManager.downloadDoc(doc, queueId);
} else { } else {
download = appDocsManager.saveDocFile(doc, queueId); download = appDocsManager.saveDocFile(doc, queueId);