This commit is contained in:
Manav Rathi 2024-05-10 13:52:41 +05:30
parent 1a90ce9d80
commit 58dfa36372
No known key found for this signature in database

View file

@ -302,7 +302,8 @@ const renderableImageBlob = async (castToken: string, file: EnteFile) => {
// Chromecast devices (at least the 2nd gen one) is not powerful enough to
// do the WASM HEIC conversion, so for such files use their thumbnails
// instead. Nb: the check is using the filename and might not be accurate.
const shouldUseThumbnail = isChromecast() && isHEICExtension(fileName);
const [, ext] = nameAndExtension(fileName);
const shouldUseThumbnail = isChromecast() && isHEICExtension(ext);
let blob = await downloadFile(castToken, file, shouldUseThumbnail);