Skip to content

armgit / ente

Public Imported from GitHub
0

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

chore: fix things

Prateek Sunal99de753c4477
diff --git a/mobile/apps/photos/lib/main.dart b/mobile/apps/photos/lib/main.dart
index a897f97258..037f64759e 100644
--- a/mobile/apps/photos/lib/main.dart
+++ b/mobile/apps/photos/lib/main.dart
@@ -187,6 +187,7 @@ Future<void> _runMinimally(String taskId, TimeLogger tlog) async {
await MLService.instance.init();
await SemanticSearchService.instance.init();
+ await PersonService.init(entityService, MLDataDB.instance, prefs);
await MLService.instance.runAllML(force: true);
await smartAlbumsService.syncSmartAlbums();
}
diff --git a/mobile/apps/photos/lib/utils/bg_task_utils.dart b/mobile/apps/photos/lib/utils/bg_task_utils.dart
index bca4d2f700..1ae1dfcb0b 100644
--- a/mobile/apps/photos/lib/utils/bg_task_utils.dart
+++ b/mobile/apps/photos/lib/utils/bg_task_utils.dart
@@ -6,6 +6,7 @@ import "package:permission_handler/permission_handler.dart";
import "package:photos/db/upload_locks_db.dart";
import "package:photos/extensions/stop_watch.dart";
import "package:photos/main.dart";
+import "package:photos/service_locator.dart";
import "package:photos/utils/file_uploader.dart";
import "package:shared_preferences/shared_preferences.dart";
import "package:workmanager/workmanager.dart" as workmanager;
@@ -80,7 +81,7 @@ class BgTaskUtils {
try {
await workmanager.Workmanager().initialize(
callbackDispatcher,
- isInDebugMode: false,
+ isInDebugMode: Platform.isIOS && flagService.internalUser,
);
await workmanager.Workmanager().registerPeriodicTask(
backgroundTaskIdentifier,