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

notifications: fix for new account

This patch force push token generation when account created.

Change-Id: I60da3e0517fe594a637d8584fbcd4c91eb3a20bc
parent 77348c56
No related branches found
No related tags found
No related merge requests found
...@@ -291,9 +291,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD ...@@ -291,9 +291,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
@objc private func registerVoipNotifications() { @objc private func registerVoipNotifications() {
self.requestNotificationAuthorization() self.requestNotificationAuthorization()
if self.voipRegistry.desiredPushTypes == nil { self.voipRegistry.desiredPushTypes = Set([PKPushType.voIP])
self.voipRegistry.desiredPushTypes = Set([PKPushType.voIP])
}
} }
private func unregisterVoipNotifications() { private func unregisterVoipNotifications() {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment