summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorJon Petersson <jon.petersson@kvadrat.se>2024-04-15 10:12:16 +0200
committerBug Magnet <marco.nikic@mullvad.net>2024-04-16 09:53:33 +0200
commit6b29d785ce142fede1c378631ea258d508010aa3 (patch)
tree5a33f78517fed6e1872e8b763e6ffd51f0f083cc
parent0a8d974b29e13d36f2b5f118461168daf58869ef (diff)
downloadmullvadvpn-6b29d785ce142fede1c378631ea258d508010aa3.tar.xz
mullvadvpn-6b29d785ce142fede1c378631ea258d508010aa3.zip
Add default settings when app is uninstalled
-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.