prevent self-send message PN
This commit is contained in:
parent
99d2dd42d5
commit
9690ce1a9e
|
@ -112,7 +112,10 @@ public final class NotificationServiceExtension : UNNotificationServiceExtension
|
|||
}
|
||||
self.handleSuccess(for: notificationContent)
|
||||
} catch {
|
||||
self.handleFailure(for: notificationContent)
|
||||
if let error = error as? MessageReceiver.Error, error.isRetryable {
|
||||
self.handleFailure(for: notificationContent)
|
||||
}
|
||||
self.completeSilenty()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue