π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
fix: add ml sync code
Prateek Sunalba07894d1870
diff --git a/mobile/apps/photos/lib/main.dart b/mobile/apps/photos/lib/main.dartindex f67c727fdc..a897f97258 100644--- a/mobile/apps/photos/lib/main.dart+++ b/mobile/apps/photos/lib/main.dart@@ -184,6 +184,11 @@ Future<void> _runMinimally(String taskId, TimeLogger tlog) async {await _sync('bgTaskActiveProcess');// only runs for androidawait _homeWidgetSync(true);++ await MLService.instance.init();+ await SemanticSearchService.instance.init();+ await MLService.instance.runAllML(force: true);+ await smartAlbumsService.syncSmartAlbums();}Future<void> _init(bool isBackground, {String via = ''}) async {diff --git a/mobile/apps/photos/lib/services/sync/sync_service.dart b/mobile/apps/photos/lib/services/sync/sync_service.dartindex 5bc089b9a3..b2367c6b4d 100644--- a/mobile/apps/photos/lib/services/sync/sync_service.dart+++ b/mobile/apps/photos/lib/services/sync/sync_service.dart@@ -12,6 +12,7 @@ import 'package:photos/core/event_bus.dart';import 'package:photos/events/subscription_purchased_event.dart';import 'package:photos/events/sync_status_update_event.dart';import 'package:photos/events/trigger_logout_event.dart';+import "package:photos/main.dart";import 'package:photos/models/file/file_type.dart';import "package:photos/service_locator.dart";import "package:photos/services/language_service.dart";@@ -200,7 +201,9 @@ class SyncService {if (shouldSync) {await _remoteSyncService.sync();}- await smartAlbumsService.syncSmartAlbums();+ if (!isProcessBg) {+ await smartAlbumsService.syncSmartAlbums();+ }}}