π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Entry point
Manav Rathi1570b0a55140
diff --git a/web/packages/media/file-metadata.ts b/web/packages/media/file-metadata.tsindex cecbe8765f..6dcde2c01f 100644--- a/web/packages/media/file-metadata.ts+++ b/web/packages/media/file-metadata.ts@@ -164,6 +164,31 @@ export interface PublicMagicMetadata {h?: number;}+/**+ * Update the public magic metadata associated with a file on remote.+ *+ * This function updates the public magic metadata on remote, and also returns a+ * new {@link EnteFile} object with the updated values, but it does not update+ * the state of the local databases. The caller needs to ensure that we+ * subsequently sync with remote to fetch the updates as part of the diff and+ * update the {@link EnteFile} that is persisted in our local database.+ *+ * @param enteFile The {@link EnteFile} whose public magic metadata we want to+ * update.+ *+ * @param updatedMetadata A subset of {@link PublicMagicMetadata} containing the+ * fields that we want to add or update.+ *+ * @param encryptMetadataF A function that is used to encrypt the metadata.+ *+ * @returns A {@link EnteFile} object with the updated public magic metadata.+ */+export const updateRemotePublicMagicMetadata = async (+ enteFile: EnteFile,+ updatedMetadata: Partial<PublicMagicMetadata>,+ encryptMetadataF: EncryptMetadataF,+) => {};+/*** Magic metadata, either public and private, as persisted and used by remote.*