mirror of
https://github.com/passepartoutvpn/passepartout-apple.git
synced 2025-02-15 12:22:06 +00:00
parent
0132aa79cc
commit
504f5206f9
@ -138,6 +138,13 @@ private extension ProfileCoordinator {
|
||||
do {
|
||||
try iapManager.verify(savedProfile, extra: profileEditor.extraFeatures)
|
||||
} catch AppError.ineligibleProfile(let requiredFeatures) {
|
||||
guard !iapManager.isLoadingReceipt else {
|
||||
errorHandler.handle(
|
||||
title: Strings.Views.Paywall.Alerts.Verifying.title,
|
||||
message: Strings.Views.Paywall.Alerts.Verifying.message
|
||||
)
|
||||
return
|
||||
}
|
||||
paywallReason = .init(requiredFeatures, needsConfirmation: true)
|
||||
return
|
||||
}
|
||||
@ -149,6 +156,13 @@ private extension ProfileCoordinator {
|
||||
do {
|
||||
try iapManager.verify(profileEditor.activeModules, extra: profileEditor.extraFeatures)
|
||||
} catch AppError.ineligibleProfile(let requiredFeatures) {
|
||||
guard !iapManager.isLoadingReceipt else {
|
||||
errorHandler.handle(
|
||||
title: Strings.Views.Paywall.Alerts.Verifying.title,
|
||||
message: Strings.Views.Paywall.Alerts.Verifying.message
|
||||
)
|
||||
return
|
||||
}
|
||||
paywallReason = .init(requiredFeatures)
|
||||
return
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user