From 30779bdf5be6cf83164a7d6a19cd12f8c60f241a Mon Sep 17 00:00:00 2001 From: Morgan Pretty Date: Mon, 3 Jul 2023 10:40:54 +1000 Subject: [PATCH] Removed an incorrect `AssertIsOnMainThread` --- Session/Notifications/PushRegistrationManager.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Session/Notifications/PushRegistrationManager.swift b/Session/Notifications/PushRegistrationManager.swift index 392b7c542..d6eb260be 100644 --- a/Session/Notifications/PushRegistrationManager.swift +++ b/Session/Notifications/PushRegistrationManager.swift @@ -100,7 +100,6 @@ public enum PushRegistrationError: Error { // User notification settings must be registered *before* AppDelegate will // return any requested push tokens. public func registerUserNotificationSettings() -> AnyPublisher { - AssertIsOnMainThread() return notificationPresenter.registerNotificationSettings() } @@ -129,6 +128,7 @@ public enum PushRegistrationError: Error { return true } + // FIXME: Might be nice to try to avoid having this required to run on the main thread (follow a similar approach to the 'SyncPushTokensJob' & `Atomic`?) private func registerForVanillaPushToken() -> AnyPublisher { AssertIsOnMainThread()