π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
update
Prateek Sunal2d57509782ca
diff --git a/mobile/apps/photos/lib/main.dart b/mobile/apps/photos/lib/main.dartindex 74264feaf2..79269b03e0 100644--- a/mobile/apps/photos/lib/main.dart+++ b/mobile/apps/photos/lib/main.dart@@ -233,11 +233,7 @@ Future<void> _runMinimally(String taskId, TimeLogger tlog) async {"[BG TASK] skipping ML, compute requirements not satisfied",);} else {- try {- await MLService.instance.runAllML(force: true);- } finally {- controller.releaseCompute(ml: true);- }+ await MLService.instance.runAllML(force: true);}}_logger.info("[BG TASK] smart albums sync");diff --git a/mobile/apps/photos/lib/services/machine_learning/ml_service.dart b/mobile/apps/photos/lib/services/machine_learning/ml_service.dartindex 0a38ec2ab4..75051593eb 100644--- a/mobile/apps/photos/lib/services/machine_learning/ml_service.dart+++ b/mobile/apps/photos/lib/services/machine_learning/ml_service.dart@@ -178,7 +178,6 @@ class MLService {_logger.info("runAllML called while already running, skipping");return;}- bool computeAcquiredInternally = false;try {final MLMode mode = isOfflineMode ? MLMode.offline : MLMode.online;final mlDataDB = _dbForMode(mode);@@ -186,10 +185,7 @@ class MLService {_mlControllerStatus = true;}if (!_canRunMLFunction(function: "AllML") && !force) return;- if (!force) {- if (!computeController.requestCompute(ml: true)) return;- computeAcquiredInternally = true;- }+ if (!force && !computeController.requestCompute(ml: true)) return;_isRunningML = true;await sync();if (_hasModeChanged(mode)) {@@ -241,9 +237,7 @@ class MLService {} finally {_logger.info("ML finished running");_isRunningML = false;- if (computeAcquiredInternally) {- computeController.releaseCompute(ml: true);- }+ computeController.releaseCompute(ml: true);if (!isProcessBg) {VideoPreviewService.instance.queueFiles();}