From 49f2d3bfe21a43b486ec34544e482b1cc673a3e7 Mon Sep 17 00:00:00 2001 From: Morgan Pretty Date: Wed, 9 Aug 2023 15:31:07 +1000 Subject: [PATCH] Removed another couple of main thread assertions --- Session/Notifications/PushRegistrationManager.swift | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/Session/Notifications/PushRegistrationManager.swift b/Session/Notifications/PushRegistrationManager.swift index de1f6aee3..b9d3f98c9 100644 --- a/Session/Notifications/PushRegistrationManager.swift +++ b/Session/Notifications/PushRegistrationManager.swift @@ -203,9 +203,8 @@ public enum PushRegistrationError: Error { } public func createVoipRegistryIfNecessary() { - AssertIsOnMainThread() - guard voipRegistry == nil else { return } + let voipRegistry = PKPushRegistry(queue: nil) self.voipRegistry = voipRegistry voipRegistry.desiredPushTypes = [.voIP] @@ -213,8 +212,6 @@ public enum PushRegistrationError: Error { } private func registerForVoipPushToken() -> AnyPublisher { - AssertIsOnMainThread() - // Use the existing publisher if it exists if let voipTokenPublisher: AnyPublisher = self.voipTokenPublisher { return voipTokenPublisher