Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

Short circuit unused code

Manav Rathi7ef59bb4ccc9
diff --git a/web/apps/cast/src/utils/file/index.ts b/web/apps/cast/src/utils/file/index.ts
index fb7e4ac673..d1f11d75dc 100644
--- a/web/apps/cast/src/utils/file/index.ts
+++ b/web/apps/cast/src/utils/file/index.ts
@@ -367,15 +367,9 @@ export const getPreviewableImage = async (
const livePhoto = await decodeLivePhoto(file, fileBlob);
fileBlob = new Blob([livePhoto.image]);
}
- const convertedBlob = await getRenderableImage(
- file.metadata.title,
- fileBlob,
- );
- fileBlob = convertedBlob;
const fileType = await getFileType(
new File([fileBlob], file.metadata.title),
);
-
fileBlob = new Blob([fileBlob], { type: fileType.mimeType });
return fileBlob;
} catch (e) {