Skip to content

Commit d128edc

Browse files
Jonas Heinrichbackportbot-nextcloud[bot]
authored andcommitted
Reset attendees participation on eventDrop
Signed-off-by: Jonas Heinrich <heinrich@synyx.de>
1 parent db68078 commit d128edc

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)