π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix issue
Abhinav7bab14b6b36e
diff --git a/apps/photos/src/services/export/index.ts b/apps/photos/src/services/export/index.tsindex 661a8f6db0..6c4b3bf367 100644--- a/apps/photos/src/services/export/index.ts+++ b/apps/photos/src/services/export/index.ts@@ -243,8 +243,8 @@ class ExportService {);const userPersonalFiles = getPersonalFiles(files,- collectionIdToOwnerIDMap,- user+ user,+ collectionIdToOwnerIDMap);const unExportedFiles = getUnExportedFiles(@@ -367,8 +367,8 @@ class ExportService {);const personalFiles = getPersonalFiles(files,- collectionIdToOwnerIDMap,- user+ user,+ collectionIdToOwnerIDMap);const nonEmptyPersonalCollections = getNonEmptyPersonalCollections(diff --git a/apps/photos/src/utils/file/index.ts b/apps/photos/src/utils/file/index.tsindex f258220a8d..fbb1383e66 100644--- a/apps/photos/src/utils/file/index.ts+++ b/apps/photos/src/utils/file/index.ts@@ -825,8 +825,8 @@ export function getLatestVersionFiles(files: EnteFile[]) {export function getPersonalFiles(files: EnteFile[],- collectionIdToOwnerIDMap: Map<number, number>,- user: User+ user: User,+ collectionIdToOwnerIDMap?: Map<number, number>) {if (!user?.id) {throw Error('user missing');@@ -834,7 +834,8 @@ export function getPersonalFiles(return files.filter((file) =>file.ownerID === user.id &&- collectionIdToOwnerIDMap.get(file.collectionID) === user.id+ (!collectionIdToOwnerIDMap ||+ collectionIdToOwnerIDMap.get(file.collectionID) === user.id));}