From b50633d124675e628a64dc2978d43cd421cb455a Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Fri, 19 Jan 2024 08:34:05 +0100 Subject: [PATCH 1/2] Update restricted profile except expiration --- Passepartout/App/Context/AppContext.swift | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Passepartout/App/Context/AppContext.swift b/Passepartout/App/Context/AppContext.swift index 8727fd036..47ba9a37f 100644 --- a/Passepartout/App/Context/AppContext.swift +++ b/Passepartout/App/Context/AppContext.swift @@ -149,7 +149,7 @@ private extension AppContext { } guard productManager.isEligible(forFeature: .appleTV) else { - var restricted: Profile + var restricted = newProfile let remainingMinutes: Int let expirationDate: Date @@ -158,7 +158,7 @@ private extension AppContext { remainingMinutes = Int(currentExpirationDate.timeIntervalSinceNow / 60.0) expirationDate = currentExpirationDate - restricted = existingProfile + restricted.connectionExpirationDate = currentExpirationDate } // otherwise, expire in N minutes from now else { @@ -166,7 +166,6 @@ private extension AppContext { expirationDate = Date() .addingTimeInterval(TimeInterval(remainingMinutes) * 60.0) - restricted = newProfile restricted.connectionExpirationDate = expirationDate } From 1bd46fe126e54a58f0f811cfac82cfcad5a291af Mon Sep 17 00:00:00 2001 From: Davide De Rosa Date: Fri, 19 Jan 2024 08:36:00 +0100 Subject: [PATCH 2/2] Update CL --- CHANGELOG.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 88ad11c2a..ac6cc1341 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -5,6 +5,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). +## Unreleased + +### Fixed + +- Restricted profile not updated. [#481](https://github.com/passepartoutvpn/passepartout-apple/pull/481) + ## 2.3.5 (2024-01-19) ### Fixed