Skip to content

armgit / ente

Public Imported from GitHub
0

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

only mark first import in syncAll when enableOnlyBackupFuturePhotos flag is on

Prateek Sunal777041b6cbfa
diff --git a/mobile/apps/photos/lib/services/sync/local_sync_service.dart b/mobile/apps/photos/lib/services/sync/local_sync_service.dart
index f7b4bf0343..49e6be1ec2 100644
--- a/mobile/apps/photos/lib/services/sync/local_sync_service.dart
+++ b/mobile/apps/photos/lib/services/sync/local_sync_service.dart
@@ -227,7 +227,8 @@ class LocalSyncService {
// Mark first import as complete if not already done.
// This handles the case where syncAll() is called (e.g., for users who
// skipped onboarding) and device collections are populated.
- if (!hasCompletedFirstImport()) {
+ // Only applies when enableOnlyBackupFuturePhotos flag is on.
+ if (flagService.enableOnlyBackupFuturePhotos && !hasCompletedFirstImport()) {
await _prefs.setBool(kHasCompletedFirstImportKey, true);
if (backupPreferenceService.hasSkippedOnboardingPermission) {
await backupPreferenceService.setOnboardingPermissionSkipped(false);