Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[mob][photos] Skip startup hydration wait for offline ML

laurenspriem8f53691e730c
diff --git a/mobile/apps/photos/lib/services/machine_learning/ml_service.dart b/mobile/apps/photos/lib/services/machine_learning/ml_service.dart
index bfcdd493b1..937400cf3b 100644
--- a/mobile/apps/photos/lib/services/machine_learning/ml_service.dart
+++ b/mobile/apps/photos/lib/services/machine_learning/ml_service.dart
@@ -403,7 +403,9 @@ class MLService {
/// with the lastest faceMlVersion and stored on remote or local database. If so, it skips the image.
Future<void> fetchAndIndexAllImages({required MLMode mode}) async {
if (!_canRunMLFunction(function: "Indexing")) return;
- await _waitForOwnedRemoteHydrationIfRunning();
+ if (mode == MLMode.online && !isOfflineMode) {
+ await _waitForOwnedRemoteHydrationIfRunning();
+ }
if (!_canRunMLFunction(function: "Indexing")) return;
bool rustRuntimePrepared = false;