diff --git a/Ring/Ring/AppDelegate.swift b/Ring/Ring/AppDelegate.swift index 93c16442d166c187cc918492d193b3fe9ea55729..dd0b86273e27e26c524a24a805bd2a831e1ee4f1 100644 --- a/Ring/Ring/AppDelegate.swift +++ b/Ring/Ring/AppDelegate.swift @@ -285,6 +285,11 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD // set selected account if exists self.appCoordinator.start() if !self.accountService.hasAccounts() { + // Set default download transfer limit to 20MB. + let userDefaults = UserDefaults.standard + if userDefaults.object(forKey: acceptTransferLimitKey) == nil { + userDefaults.set(20, forKey: acceptTransferLimitKey) + } return } if self.accountService.hasAccountWithProxyEnabled() {