Skip to content

armgit / ente

Public Imported from GitHub
0

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

Lint workrounds for photos tsc

Manav Rathi3e0448bbe5cf
diff --git a/web/packages/media/file.ts b/web/packages/media/file.ts
index 1cb922ac84..44695aae1f 100644
--- a/web/packages/media/file.ts
+++ b/web/packages/media/file.ts
@@ -626,6 +626,10 @@ export async function decryptFile(
collectionKey,
);
const fileMetadata = await worker.decryptMetadataJSON(
+ // See: [Note: strict mode migration]
+ //
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
+ // @ts-ignore
metadata,
fileKey,
);
@@ -720,6 +724,10 @@ export const decryptRemoteFile = async (
collectionKey,
);
+ // See: [Note: strict mode migration]
+ //
+ // eslint-disable-next-line @typescript-eslint/ban-ts-comment
+ // @ts-ignore
const metadata = await decryptMetadataJSON(encryptedMetadata, key);
let magicMetadata: EnteFile2["magicMetadata"];