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:
parent
8add0a801a
commit
9212cd4c23
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user