From 3b319824c4c8a53fee30ac9fc2e00fa6dcdf5329 Mon Sep 17 00:00:00 2001 From: Kateryna Kostiuk <kateryna.kostiuk@savoirfairelinux.com> Date: Mon, 13 Jul 2020 16:53:05 -0400 Subject: [PATCH] notifications: fix for new account This patch force push token generation when account created. Change-Id: I60da3e0517fe594a637d8584fbcd4c91eb3a20bc --- Ring/Ring/AppDelegate.swift | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Ring/Ring/AppDelegate.swift b/Ring/Ring/AppDelegate.swift index f30469ca7..d9c2d4705 100644 --- a/Ring/Ring/AppDelegate.swift +++ b/Ring/Ring/AppDelegate.swift @@ -291,9 +291,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD @objc private func registerVoipNotifications() { self.requestNotificationAuthorization() - if self.voipRegistry.desiredPushTypes == nil { - self.voipRegistry.desiredPushTypes = Set([PKPushType.voIP]) - } + self.voipRegistry.desiredPushTypes = Set([PKPushType.voIP]) } private func unregisterVoipNotifications() { -- GitLab