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
Branches
Tags
No related merge requests found
...@@ -291,10 +291,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD ...@@ -291,10 +291,8 @@ 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() {
self.voipRegistry.desiredPushTypes = nil self.voipRegistry.desiredPushTypes = nil
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment