mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-02-23 08:12:37 +00:00
Temporarily disable auto-deletion of migrated profiles (#1013)
Leave room for downgrade until 3.0.0 is stable.
This commit is contained in:
parent
750b12c4ee
commit
b9353a6b02
@ -191,16 +191,17 @@ private extension MigrateView {
|
|||||||
}
|
}
|
||||||
pp_log(.App.migration, .notice, "Migrated \(migrated.count) profiles")
|
pp_log(.App.migration, .notice, "Migrated \(migrated.count) profiles")
|
||||||
|
|
||||||
if !iapManager.isRestricted {
|
// TODO: ### restore auto-deletion after stable 3.0.0, otherwise users could not downgrade
|
||||||
do {
|
// if !iapManager.isRestricted {
|
||||||
try await migrationManager.deleteMigratableProfiles(withIds: Set(migrated.map(\.id)))
|
// do {
|
||||||
pp_log(.App.migration, .notice, "Discarded \(migrated.count) migrated profiles from old store")
|
// try await migrationManager.deleteMigratableProfiles(withIds: Set(migrated.map(\.id)))
|
||||||
} catch {
|
// pp_log(.App.migration, .notice, "Discarded \(migrated.count) migrated profiles from old store")
|
||||||
pp_log(.App.migration, .error, "Unable to discard migrated profiles: \(error)")
|
// } catch {
|
||||||
}
|
// pp_log(.App.migration, .error, "Unable to discard migrated profiles: \(error)")
|
||||||
} else {
|
// }
|
||||||
|
// } else {
|
||||||
pp_log(.App.migration, .notice, "Restricted build, do not discard migrated profiles")
|
pp_log(.App.migration, .notice, "Restricted build, do not discard migrated profiles")
|
||||||
}
|
// }
|
||||||
|
|
||||||
model.step = .migrated(migrated)
|
model.step = .migrated(migrated)
|
||||||
} catch {
|
} catch {
|
||||||
|
Loading…
Reference in New Issue
Block a user