π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
[desktop] Passthrough unknown entity data fields
Manav Rathic03f63d2b245
diff --git a/web/packages/new/photos/services/user-entity/index.ts b/web/packages/new/photos/services/user-entity/index.tsindex bd794ec17c..2a81f699a7 100644--- a/web/packages/new/photos/services/user-entity/index.ts+++ b/web/packages/new/photos/services/user-entity/index.ts@@ -57,7 +57,7 @@ const RemoteLocationTagData = z.object({latitude: z.number(),longitude: z.number(),}),-});+}).passthrough();/*** A view of the location tag data suitable for use by the rest of the app.@@ -75,7 +75,7 @@ export const savedLocationTags = (): Promise<LocationTag[]> =>const RemoteFaceCluster = z.object({id: z.string(),faces: z.string().array(),-});+}).passthrough();/*** Zod schema for the fields of interest in the cgroup that we get from remote.@@ -88,7 +88,7 @@ const RemoteCGroupData = z.object({rejectedFaceIDs: z.array(z.string()).nullish().transform(nullishToEmpty),isHidden: z.boolean(),avatarFaceID: z.string().nullish().transform(nullToUndefined),-});+}).passthrough();/*** A "cgroup" user entity.