mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
Removed another couple of main thread assertions
This commit is contained in:
parent
1a383ea850
commit
49f2d3bfe2
|
@ -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<String?, Error> {
|
||||
AssertIsOnMainThread()
|
||||
|
||||
// Use the existing publisher if it exists
|
||||
if let voipTokenPublisher: AnyPublisher<Data?, Error> = self.voipTokenPublisher {
|
||||
return voipTokenPublisher
|
||||
|
|
Loading…
Reference in a new issue