π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Remove unused
Manav Rathi9cc8469ed901
diff --git a/web/apps/photos/src/utils/file/index.ts b/web/apps/photos/src/utils/file/index.tsindex 71978ee24c..6857585aa9 100644--- a/web/apps/photos/src/utils/file/index.ts+++ b/web/apps/photos/src/utils/file/index.ts@@ -210,25 +210,6 @@ export async function changeFilesVisibility(return await updateFileMagicMetadata(fileWithUpdatedMagicMetadataList);}-export async function changeFileCreationTime(- file: EnteFile,- editedTime: number,-): Promise<EnteFile> {- const updatedPublicMagicMetadataProps: FilePublicMagicMetadataProps = {- editedTime,- };- const updatedPublicMagicMetadata: FilePublicMagicMetadata =- await updateMagicMetadata(- updatedPublicMagicMetadataProps,- file.pubMagicMetadata,- file.key,- );- const updateResult = await updateFilePublicMagicMetadata([- { file, updatedPublicMagicMetadata },- ]);- return updateResult[0];-}-export async function changeFileName(file: EnteFile,editedName: string,diff --git a/web/packages/media/file-metadata.ts b/web/packages/media/file-metadata.tsindex acd01c86d8..02591a0374 100644--- a/web/packages/media/file-metadata.ts+++ b/web/packages/media/file-metadata.ts@@ -220,12 +220,14 @@ const PublicMagicMetadata = z.object({// [Note: Zod doesn't work with `exactOptionalPropertyTypes` yet]//- // Using `optional` is accurate here. The key is optional, but the value- // itself is not optional. Zod doesn't work with- // `exactOptionalPropertyTypes` yet, but it seems to be on the roadmap so we- // suppress these mismatches.+ // Using `optional` is not accurate here. The key is optional, but the+ // value itself is not optional.//- // See: https://github.com/colinhacks/zod/issues/635#issuecomment-2196579063+ // Zod doesn't work with `exactOptionalPropertyTypes` yet, but it seems+ // to be on the roadmap so we suppress these mismatches.+ //+ // See:+ // https://github.com/colinhacks/zod/issues/635#issuecomment-2196579063editedTime: z.number().optional(),}).passthrough();