Fix hasCompletedInitialSync never being set for existing users

- Set hasCompletedInitialSync = true when user has existing data
- Only scheduleDelayedCloudCheck for fresh installs with no data
- Fixes UI stuck on 'Syncing...' for returning users
This commit is contained in:
Matt Bruce 2026-01-04 13:33:32 -06:00
parent 8add0a801a
commit 9212cd4c23

View File

@ -193,6 +193,9 @@ public final class CloudSyncManager<T: PersistableData> {
// On fresh install, wait for iCloud data // On fresh install, wait for iCloud data
if data.syncPriority == 0 && iCloudAvailable && iCloudEnabled { if data.syncPriority == 0 && iCloudAvailable && iCloudEnabled {
scheduleDelayedCloudCheck() scheduleDelayedCloudCheck()
} else {
// Existing user with data - initial sync is complete
hasCompletedInitialSync = true
} }
} }