mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
prevent self-send message PN
This commit is contained in:
parent
99d2dd42d5
commit
9690ce1a9e
1 changed files with 4 additions and 1 deletions
|
@ -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 a new issue