From 07bd126131f81a38baeaf1694f1b7f897b10742f Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Tue, 4 Apr 2023 18:59:05 +0200 Subject: [PATCH] Recognize IAPs other than full version on Mac (#281) --- CHANGELOG.md | 1 + Passepartout/App/InApp/ProductManager.swift | 6 +----- 2 files changed, 2 insertions(+), 5 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 6ea32af3..56ac5222 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Improve kill switch behavior. [#181](https://github.com/passepartoutvpn/passepartout-apple/issues/181) - Retain original filename as imported profile name. [#240](https://github.com/passepartoutvpn/passepartout-apple/pull/240) +- In-app purchases other than full version were not recognized (macOS). [#281](https://github.com/passepartoutvpn/passepartout-apple/pull/281) ## 2.0.2 (2022-10-31) diff --git a/Passepartout/App/InApp/ProductManager.swift b/Passepartout/App/InApp/ProductManager.swift index c728c94c..699b1336 100644 --- a/Passepartout/App/InApp/ProductManager.swift +++ b/Passepartout/App/InApp/ProductManager.swift @@ -205,11 +205,7 @@ class ProductManager: NSObject, ObservableObject { return true } } - if isMac { - return isFullVersion() - } else { - return isFullVersion() || purchasedFeatures.contains(feature) - } + return isFullVersion() || purchasedFeatures.contains(feature) } func isEligible(forProvider providerName: ProviderName) -> Bool {