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 81ebab0
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion lib/CalDAV/Schedule/Plugin.php
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']);

// Only ignore rescheduling if change is not significant,
// unsetting SCHEDULE-FORCE-SEND. Respecting RFC 6638 3.2.8.
if (!$message->significantChange) {
unset($attendee['SCHEDULE-FORCE-SEND']);
};

break;
}
}
Expand Down

0 comments on commit 81ebab0

Please sign in to comment.