π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
simplify syncAll first import condition to only check hasSkippedOnboardingPermission
Prateek Sunal9a1608a4006e
diff --git a/mobile/apps/photos/lib/services/sync/local_sync_service.dart b/mobile/apps/photos/lib/services/sync/local_sync_service.dartindex a55cf4c99d..8e99754b83 100644--- a/mobile/apps/photos/lib/services/sync/local_sync_service.dart+++ b/mobile/apps/photos/lib/services/sync/local_sync_service.dart@@ -224,16 +224,12 @@ class LocalSyncService {);}- // Mark first import as complete if not already done.+ // Mark first import as complete if user had skipped onboarding permission.// This handles the case where syncAll() is called for users who skipped// onboarding permission and later granted it - device collections get// populated via syncAll but first import flag was never set.- // Only applies when enableOnlyBackupFuturePhotos flag is on and user had- // skipped onboarding permission. Permission must be granted for syncAll- // to reach this point (getAllLocalAssets would fail otherwise).- if (flagService.enableOnlyBackupFuturePhotos &&- backupPreferenceService.hasSkippedOnboardingPermission &&- !hasCompletedFirstImport()) {+ // Permission must be granted for syncAll to reach this point.+ if (backupPreferenceService.hasSkippedOnboardingPermission) {await _prefs.setBool(kHasCompletedFirstImportKey, true);await backupPreferenceService.setOnboardingPermissionSkipped(false);_logger.info("first import marked complete via syncAll");