summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorBug Magnet <marco.nikic@mullvad.net>2024-04-16 09:54:24 +0200
committerBug Magnet <marco.nikic@mullvad.net>2024-04-16 09:54:24 +0200
commit077781ba5325476c58f33899f112e7b9a642c8d1 (patch)
tree5a33f78517fed6e1872e8b763e6ffd51f0f083cc
parent0a8d974b29e13d36f2b5f118461168daf58869ef (diff)
parent6b29d785ce142fede1c378631ea258d508010aa3 (diff)
downloadmullvadvpn-077781ba5325476c58f33899f112e7b9a642c8d1.tar.xz
mullvadvpn-077781ba5325476c58f33899f112e7b9a642c8d1.zip
Merge branch 'add-default-settings-when-app-is-uninstalled-ios-609'
-rw-r--r--ios/MullvadVPN/AppDelegate.swift2
1 files changed, 2 insertions, 0 deletions
diff --git a/ios/MullvadVPN/AppDelegate.swift b/ios/MullvadVPN/AppDelegate.swift
index a2239e3e7c..aef14c594a 100644
--- a/ios/MullvadVPN/AppDelegate.swift
+++ b/ios/MullvadVPN/AppDelegate.swift
@@ -502,7 +502,9 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
}
SettingsManager.resetStore(completely: true)
+ try? SettingsManager.writeSettings(LatestTunnelSettings())
+ // Default access methods need to be repopulated again after settings wipe.
self.accessMethodRepository.reloadWithDefaultsAfterDataRemoval()
// At app startup, the relay cache tracker will get populated with a list of overriden IPs.
// The overriden IPs will get wiped, therefore, the cache needs to be pruned as well.