mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-17 11:08:06 +00:00
Handle meeting invite notification creation/update/cancellation
This commit is contained in:
parent
3edcfb4222
commit
59c90fe65a
2 changed files with 12 additions and 1 deletions
Binary file not shown.
|
|
@ -164,7 +164,18 @@ class NotificationService: UNNotificationServiceExtension {
|
|||
}
|
||||
|
||||
func parseMessage(message: PushNotificationMessage) -> MsgData? {
|
||||
let content = message.isIcalendar ? NSLocalizedString("You are invited to a conference", comment: "") : message.isText ? message.textContent : "🗻"
|
||||
|
||||
var content = ""
|
||||
if (message.isConferenceInvitationNew) {
|
||||
content = NSLocalizedString("📅 You are invited to a meeting", comment: "")
|
||||
} else if (message.isConferenceInvitationUpdate) {
|
||||
content = NSLocalizedString("📅 Meeting has been modified", comment: "")
|
||||
} else if (message.isConferenceInvitationCancellation) {
|
||||
content = NSLocalizedString("📅 Meeting has been cancelled", comment: "")
|
||||
} else {
|
||||
content = message.isText ? message.textContent : "🗻"
|
||||
}
|
||||
|
||||
let fromAddr = message.fromAddr?.username
|
||||
let callId = message.callId
|
||||
let localUri = message.localAddr?.asStringUriOnly()
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue