From 58dfa3637210d45834d30ed4cc476725bd976557 Mon Sep 17 00:00:00 2001 From: Manav Rathi Date: Fri, 10 May 2024 13:52:41 +0530 Subject: [PATCH] Fix --- web/apps/cast/src/services/render.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/apps/cast/src/services/render.ts b/web/apps/cast/src/services/render.ts index cc06f5aa35..d1630d1014 100644 --- a/web/apps/cast/src/services/render.ts +++ b/web/apps/cast/src/services/render.ts @@ -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);