mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-01-22 08:32:11 +00:00
Fix iCloud/TV sync not working with Advanced Data Protection (#1090)
The ubiquity token does not seem to be a reliable source of truth for the state of CloudKit. Faced with tvOS, now also with Advanced Data Protection. It is nil, but CloudKit actually works. Therefore, start a CloudKit container regardless of the ubiquity token. The only downside is that the iCloud/TV icons of a profile will now only appear crossed in case of in-app ineligibility, but this is in favor of better functionality.
This commit is contained in:
parent
b2fde2327a
commit
a3281042f8
@ -158,7 +158,7 @@ extension AppContext {
|
||||
|
||||
let onEligibleFeaturesBlock: (Set<AppFeature>) async -> Void = { @MainActor features in
|
||||
let isEligibleForSharing = features.contains(.sharing)
|
||||
let isRemoteImportingEnabled = isEligibleForSharing && isCloudKitEnabled
|
||||
let isRemoteImportingEnabled = isEligibleForSharing
|
||||
|
||||
// toggle CloudKit sync based on .sharing eligibility
|
||||
let remoteStore = newRemoteStore(isRemoteImportingEnabled)
|
||||
|
Loading…
Reference in New Issue
Block a user