Skip to content

Commit 50f4ca3

Browse files
fix: check if event status was changed to cancelled and generate appropriate message
Signed-off-by: SebastianKrupinski <[email protected]>
1 parent f61b41a commit 50f4ca3

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/ITip/Broker.php

+5-4
Original file line numberDiff line numberDiff line change
@@ -503,10 +503,11 @@ protected function parseEventForOrganizer(VCalendar $calendar, array $eventInfo,
503503
$icalMsg->add(clone $timezone);
504504
}
505505

506-
if (!$attendee['newInstances']) {
507-
// If there are no instances the attendee is a part of, it
508-
// means the attendee was removed and we need to send him a
509-
// CANCEL.
506+
if (!$attendee['newInstances'] || $eventInfo['status'] === 'CANCELLED') {
507+
// If there are no instances the attendee is a part of, it means
508+
// the attendee was removed and we need to send them a CANCEL message.
509+
// Also If the meeting STATUS property was changed to CANCELLED
510+
// we need to send the attendee a CANCEL message.
510511
$message->method = 'CANCEL';
511512

512513
$icalMsg->METHOD = $message->method;

0 commit comments

Comments
 (0)