Skip to content

Commit

Permalink
Reset attendees participation on eventDrop
Browse files Browse the repository at this point in the history
Signed-off-by: Jonas Heinrich <[email protected]>
  • Loading branch information
Jonas Heinrich committed Oct 26, 2023
1 parent d9c2322 commit eec206f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/fullcalendar/interaction/eventDrop.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,17 @@ export default function(store, fcAPI) {
return
}

// Reset attendees participation state to NEEDS-ACTION, since eventDrop
// is always a signification change
// Partly a workaround for Sabre-DAV not respecting RFC 6638 3.2.8, see
// https://github.com/sabre-io/dav/issues/1282
const organizer = eventComponent.getFirstProperty('ORGANIZER')
for (const attendee of eventComponent.getAttendeeIterator()) {
if (organizer.value !== attendee.value) {
attendee.participationStatus = 'NEEDS-ACTION'
}
}

try {
// shiftByDuration may throw exceptions in certain cases
eventComponent.shiftByDuration(deltaDuration, event.allDay, timezone, defaultAllDayDuration, defaultTimedDuration)
Expand Down

0 comments on commit eec206f

Please sign in to comment.