Skip to content

Commit a004e77

Browse files
authored
Merge pull request #5552 from nextcloud/backport/5532/stable4.5
[stable4.5] Reset attendees participation on eventDrop
2 parents 7bfd12f + d128edc commit a004e77

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

src/fullcalendar/interaction/eventDrop.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,19 @@ export default function(store, fcAPI) {
6868
return
6969
}
7070

71+
// Reset attendees participation state to NEEDS-ACTION, since eventDrop
72+
// is always a signification change
73+
// Partly a workaround for Sabre-DAV not respecting RFC 6638 3.2.8, see
74+
// https://github.com/sabre-io/dav/issues/1282
75+
if (eventComponent.organizer && eventComponent.hasProperty('ATTENDEE')) {
76+
const organizer = eventComponent.getFirstProperty('ORGANIZER')
77+
for (const attendee of eventComponent.getAttendeeIterator()) {
78+
if (organizer.value !== attendee.value) {
79+
attendee.participationStatus = 'NEEDS-ACTION'
80+
}
81+
}
82+
}
83+
7184
try {
7285
// shiftByDuration may throw exceptions in certain cases
7386
eventComponent.shiftByDuration(deltaDuration, event.allDay, timezone, defaultAllDayDuration, defaultTimedDuration)

0 commit comments

Comments
 (0)