Skip to content

armgit / ente

Public Imported from GitHub
0

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

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

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