Skip to content

armgit / ente

Public Imported from GitHub
0

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

[mob][photos] allow remote sync when only-new/skip

Prateek Sunal1d957cdc9f7f
diff --git a/mobile/apps/photos/lib/services/sync/sync_service.dart b/mobile/apps/photos/lib/services/sync/sync_service.dart
index 64bc41c451..c315c68461 100644
--- a/mobile/apps/photos/lib/services/sync/sync_service.dart
+++ b/mobile/apps/photos/lib/services/sync/sync_service.dart
@@ -197,7 +197,14 @@ class SyncService {
_logger.info("[SYNC] Starting local sync");
await _localSyncService.sync();
- if (_localSyncService.hasCompletedFirstImport()) {
+ final bool hasCompletedFirstImport =
+ _localSyncService.hasCompletedFirstImport();
+ final bool allowRemoteSyncEarly =
+ flagService.enableOnlyBackupFuturePhotos &&
+ (localSettings.hasOnboardingPermissionSkipped ||
+ localSettings.isOnlyNewBackupEnabled);
+
+ if (hasCompletedFirstImport || allowRemoteSyncEarly) {
_logger.info("[SYNC] Starting remote sync");
await _remoteSyncService.sync();