diff --git a/Ring/Ring/Features/Walkthrough/Models/LinkToAccountVM.swift b/Ring/Ring/Features/Walkthrough/Models/LinkToAccountVM.swift index 49af34c8406d6ff4eaad688417605a1164310430..fe57f9a7a0ff8d0194a3cb796e705b542a00d472 100644 --- a/Ring/Ring/Features/Walkthrough/Models/LinkToAccountVM.swift +++ b/Ring/Ring/Features/Walkthrough/Models/LinkToAccountVM.swift @@ -210,6 +210,11 @@ class LinkToAccountVM: ObservableObject, AvatarViewDataModel { let error = AuthError(rawValue: errorString) { withAnimation { self.uiState = .error(message: error.message()) } } else { + // enable push notifications + NotificationCenter + .default + .post(name: NSNotification.Name(rawValue: NotificationName.enablePushNotifications.rawValue), + object: nil) withAnimation { self.uiState = .success } } } diff --git a/Ring/Ring/Services/AccountsService.swift b/Ring/Ring/Services/AccountsService.swift index a16bac6198e89904156580dd24e6318c80331805..8b3cfde1669c96309c607714e133f3fbd194bfa4 100644 --- a/Ring/Ring/Services/AccountsService.swift +++ b/Ring/Ring/Services/AccountsService.swift @@ -1155,6 +1155,7 @@ extension AccountsService { func createTemporaryAccount() async throws -> String { var details = try getJamiInitialAccountDetails() + details[ConfigKey.proxyEnabled.rawValue] = "true" details.updateValue("jami-auth", forKey: ConfigKey.archiveURL.rawValue) if let testServer = TestEnvironment.shared.nameServerURI {