Skip to content

Commit

Permalink
Reordering of the attendees should not be a signitifcant change (sabr…
Browse files Browse the repository at this point in the history
  • Loading branch information
floerke committed Sep 10, 2021
1 parent d8a0a9a commit 1190e08
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/ITip/Broker.php
Original file line number Diff line number Diff line change
Expand Up @@ -547,9 +547,14 @@ protected function parseEventForOrganizer(VCalendar $calendar, array $eventInfo,
// properties changed in the event, or simply if there's a
// difference in instances that the attendee is invited to.

$oldAttendees = array_keys($attendee['oldInstances']);
$newAttendees = array_keys($attendee['newInstances']);
asort($oldAttendees);
asort($newAttendees);

$message->significantChange =
'REQUEST' === $attendee['forceSend'] ||
array_keys($attendee['oldInstances']) != array_keys($attendee['newInstances']) ||
$oldAttendees != $newAttendees ||
$oldEventInfo['significantChangeHash'] !== $eventInfo['significantChangeHash'];

foreach ($attendee['newInstances'] as $instanceId => $instanceInfo) {
Expand Down

0 comments on commit 1190e08

Please sign in to comment.