Skip to content
Snippets Groups Projects
Commit 6068c851 authored by Kateryna Kostiuk's avatar Kateryna Kostiuk
Browse files

link account: enable push notifications

Change-Id: I6fff5cd8c3debf266ebe23d2f472aa6946442236
parent 1d243994
No related branches found
No related tags found
No related merge requests found
...@@ -210,6 +210,11 @@ class LinkToAccountVM: ObservableObject, AvatarViewDataModel { ...@@ -210,6 +210,11 @@ class LinkToAccountVM: ObservableObject, AvatarViewDataModel {
let error = AuthError(rawValue: errorString) { let error = AuthError(rawValue: errorString) {
withAnimation { self.uiState = .error(message: error.message()) } withAnimation { self.uiState = .error(message: error.message()) }
} else { } else {
// enable push notifications
NotificationCenter
.default
.post(name: NSNotification.Name(rawValue: NotificationName.enablePushNotifications.rawValue),
object: nil)
withAnimation { self.uiState = .success } withAnimation { self.uiState = .success }
} }
} }
......
...@@ -1155,6 +1155,7 @@ extension AccountsService { ...@@ -1155,6 +1155,7 @@ extension AccountsService {
func createTemporaryAccount() async throws -> String { func createTemporaryAccount() async throws -> String {
var details = try getJamiInitialAccountDetails() var details = try getJamiInitialAccountDetails()
details[ConfigKey.proxyEnabled.rawValue] = "true"
details.updateValue("jami-auth", forKey: ConfigKey.archiveURL.rawValue) details.updateValue("jami-auth", forKey: ConfigKey.archiveURL.rawValue)
if let testServer = TestEnvironment.shared.nameServerURI { if let testServer = TestEnvironment.shared.nameServerURI {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment