Skip to content

Commit

Permalink
Reschedule mail delivery if change to event is significant
Browse files Browse the repository at this point in the history
  • Loading branch information
Jonas Heinrich authored and Jonas Heinrich committed Jan 24, 2023
1 parent 1ddd773 commit 00cf16c
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/CalDAV/Schedule/Plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,13 @@ protected function processICalendarChange($oldObject, VCalendar $newObject, arra
if ($message->scheduleStatus) {
$attendee['SCHEDULE-STATUS'] = $message->getScheduleStatus();
}
unset($attendee['SCHEDULE-FORCE-SEND']);

// Reschedule when change to an existing event is significant,
// otherwise unset SCHEDULE-FORCE-SEND. Respecting RFC 6638 3.2.8.
if (!(isset($oldObject) && $message->significantChange)) {
unset($attendee['SCHEDULE-FORCE-SEND']);
};

break;
}
}
Expand Down

0 comments on commit 00cf16c

Please sign in to comment.