mirror of
https://github.com/oxen-io/session-ios.git
synced 2023-12-13 21:30:14 +01:00
show incoming call notification
This commit is contained in:
parent
a1f8e16eb3
commit
57a04f4ff5
|
@ -87,6 +87,13 @@ public final class NotificationServiceExtension : UNNotificationServiceExtension
|
||||||
case .new(_, let name, _, _, _, _): snippet = "\(senderDisplayName) added you to \(name)"
|
case .new(_, let name, _, _, _, _): snippet = "\(senderDisplayName) added you to \(name)"
|
||||||
default: return self.completeSilenty()
|
default: return self.completeSilenty()
|
||||||
}
|
}
|
||||||
|
case let callMessage as CallMessage:
|
||||||
|
MessageReceiver.handleCallMessage(callMessage, using: transaction)
|
||||||
|
notificationContent.userInfo = userInfo
|
||||||
|
notificationContent.badge = 1
|
||||||
|
notificationContent.title = "Session"
|
||||||
|
notificationContent.body = "\(senderDisplayName) is calling..."
|
||||||
|
return self.handleSuccess(for: notificationContent)
|
||||||
default: return self.completeSilenty()
|
default: return self.completeSilenty()
|
||||||
}
|
}
|
||||||
if (senderPublicKey == userPublicKey) {
|
if (senderPublicKey == userPublicKey) {
|
||||||
|
|
Loading…
Reference in a new issue