Skip to content

Commit

Permalink
Merge pull request #5532 from onny/reset-participation2
Browse files Browse the repository at this point in the history
  • Loading branch information
st3iny authored Oct 30, 2023
2 parents 37a6699 + a568764 commit 8f39923
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions src/fullcalendar/interaction/eventDrop.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,19 @@ 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
if (eventComponent.organizer && eventComponent.hasProperty('ATTENDEE')) {
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 8f39923

Please sign in to comment.