From 59c90fe65a851c3257e031d66117467d76be09b9 Mon Sep 17 00:00:00 2001 From: Christophe Deschamps Date: Tue, 8 Nov 2022 10:10:39 +0100 Subject: [PATCH] Handle meeting invite notification creation/update/cancellation --- Resources/fr.lproj/Localizable.strings | Bin 72468 -> 72862 bytes .../NotificationService.swift | 13 ++++++++++++- 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Resources/fr.lproj/Localizable.strings b/Resources/fr.lproj/Localizable.strings index 54f605706680a0ac181d2458e05da1ef3ee98aeb..1efbd414787b563341af89ef7cd102c43d70c1bc 100644 GIT binary patch delta 194 zcmbQTjb+|WmWC~iBGT+i47N9p-cgu7Uy4y#HkTovA%!86Aq|LAfh?dT2!j+b_)Om@ zz$iTZgA^m*^foC*0bV5rYX&ZuG)TWGPzalP8ABAM43R)vN*NRw5*dnswkQDY%3~-4 lk|kg}6@Ya9^jslEX;!eslLh~avO|?j{_mWC~iBGLdIdjt*u diff --git a/msgNotificationService/NotificationService.swift b/msgNotificationService/NotificationService.swift index 773b2a55a..4c4f19492 100644 --- a/msgNotificationService/NotificationService.swift +++ b/msgNotificationService/NotificationService.swift @@ -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()