π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Inline
Manav Rathi3c3f9b2b4854
diff --git a/web/apps/photos/src/services/face/db-old.ts b/web/apps/photos/src/services/face/db-old.tsindex a70e94bee7..7dd1e71fa3 100644--- a/web/apps/photos/src/services/face/db-old.ts+++ b/web/apps/photos/src/services/face/db-old.ts@@ -11,10 +11,7 @@ import {import isElectron from "is-electron";import type { Person } from "services/face/people";import type { MlFileData } from "services/face/types-old";-import {- DEFAULT_ML_SEARCH_CONFIG,- MAX_ML_SYNC_ERROR_COUNT,-} from "services/machineLearning/machineLearningService";+import { MAX_ML_SYNC_ERROR_COUNT } from "services/machineLearning/machineLearningService";export interface IndexStatus {outOfSyncFilesExists: boolean;@@ -159,6 +156,10 @@ class MLIDbStorage {*/}if (oldVersion < 3) {+ const DEFAULT_ML_SEARCH_CONFIG = {+ enabled: false,+ };+await tx.objectStore("configs").add(DEFAULT_ML_SEARCH_CONFIG, ML_SEARCH_CONFIG_NAME);diff --git a/web/apps/photos/src/services/face/indexer.ts b/web/apps/photos/src/services/face/indexer.tsindex f931a058dc..5930e60c1e 100644--- a/web/apps/photos/src/services/face/indexer.ts+++ b/web/apps/photos/src/services/face/indexer.ts@@ -4,7 +4,6 @@ import { wait } from "@/utils/promise";import { type Remote } from "comlink";import mlIDbStorage, { ML_SEARCH_CONFIG_NAME } from "services/face/db-old";import machineLearningService, {- DEFAULT_ML_SEARCH_CONFIG,defaultMLVersion,} from "services/machineLearning/machineLearningService";import mlWorkManager from "services/machineLearning/mlWorkManager";@@ -227,10 +226,9 @@ export const unidentifiedFaceIDs = async (*/export const isFaceIndexingEnabled = async () => {if (isInternalUserForML()) {- const config = await mlIDbStorage.getConfig(- ML_SEARCH_CONFIG_NAME,- DEFAULT_ML_SEARCH_CONFIG,- );+ const config = await mlIDbStorage.getConfig(ML_SEARCH_CONFIG_NAME, {+ enabled: false,+ });return config.enabled;}// Force disabled for everyone else while we finalize it to avoid redundantdiff --git a/web/apps/photos/src/services/machineLearning/machineLearningService.ts b/web/apps/photos/src/services/machineLearning/machineLearningService.tsindex 4b9826da63..a452846623 100644--- a/web/apps/photos/src/services/machineLearning/machineLearningService.ts+++ b/web/apps/photos/src/services/machineLearning/machineLearningService.ts@@ -14,14 +14,6 @@ const batchSize = 200;export const MAX_ML_SYNC_ERROR_COUNT = 1;-export interface MLSearchConfig {- enabled: boolean;-}--export const DEFAULT_ML_SEARCH_CONFIG: MLSearchConfig = {- enabled: false,-};-class MLSyncContext {public token: string;public userID: number;