Skip to content

armgit / ente

Public Imported from GitHub
0

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

Checked that the image part is passed as the file

Manav Rathifd4a7889532d
diff --git a/web/apps/photos/src/services/face/f-index.ts b/web/apps/photos/src/services/face/f-index.ts
index 9f871d4367..4ed6c4792f 100644
--- a/web/apps/photos/src/services/face/f-index.ts
+++ b/web/apps/photos/src/services/face/f-index.ts
@@ -76,10 +76,6 @@ export const indexFaces = async (
const fetchOrCreateImageBitmap = async (enteFile: EnteFile, file: File) => {
const fileType = enteFile.metadata.fileType;
if (file) {
- // TODO-ML(MR): Could also be image part of live photo?
- if (fileType !== FILE_TYPE.IMAGE)
- throw new Error("Local file of only image type is supported");
-
return await getLocalFileImageBitmap(enteFile, file);
} else if ([FILE_TYPE.IMAGE, FILE_TYPE.LIVE_PHOTO].includes(fileType)) {
return await fetchImageBitmap(enteFile);