π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
t
Manav Rathi6e6c88826e95
diff --git a/web/apps/photos/src/services/face/indexer.ts b/web/apps/photos/src/services/face/indexer.tsindex a10ff34bb1..9f3cc4a9d3 100644--- a/web/apps/photos/src/services/face/indexer.ts+++ b/web/apps/photos/src/services/face/indexer.ts@@ -245,9 +245,10 @@ export const setIsFaceIndexingEnabled = async (enabled: boolean) => {};export const syncLocalFiles = async (userID: number) => {- const startTime = Date.now();const localFilesMap = await localUserOwnedFilesByID(userID);+ // const localFileIDs = new Set(localFilesMap.keys());+const db = await mlIDbStorage.db;const tx = db.transaction("files", "readwrite");const mlFileIdsArr = await mlIDbStorage.getAllFileIdsForUpdate(tx);@@ -296,8 +297,6 @@ export const syncLocalFiles = async (userID: number) => {await mlIDbStorage.incrementIndexVersion("files");}- log.info("syncLocalFiles", Date.now() - startTime, "ms");-return localFilesMap;};diff --git a/web/apps/photos/src/services/machineLearning/machineLearningService.ts b/web/apps/photos/src/services/machineLearning/machineLearningService.tsindex 4aa2235db4..f1de281efa 100644--- a/web/apps/photos/src/services/machineLearning/machineLearningService.ts+++ b/web/apps/photos/src/services/machineLearning/machineLearningService.ts@@ -104,7 +104,6 @@ class MachineLearningService {return syncContext.localFilesMap;}-private async getOutOfSyncFiles(syncContext: MLSyncContext) {const startTime = Date.now();const fileIds = await mlIDbStorage.getFileIds(