This commit is contained in:
Manav Rathi
2024-08-17 21:10:11 +05:30
parent 25f1087685
commit 6488c4fa0e

View File

@@ -172,6 +172,11 @@ export const fetchMLData = async (
}
try {
// TODO: This line is included in the photos app which currently
// doesn't have strict mode enabled, and where it causes a spurious
// error, so we unfortunately need to turn off typechecking.
// eslint-disable-next-line @typescript-eslint/ban-ts-comment, @typescript-eslint/prefer-ts-expect-error
// @ts-ignore
const decryptedBytes = await decryptBlob(remoteFileData, file.key);
const jsonString = await gunzip(decryptedBytes);
result.set(fileID, remoteMLDataFromJSONString(jsonString));