(fix) use the organizer's alarm by default when accepting IMIP messages (fixes #3934)

This commit is contained in:
Ludovic Marcotte
2017-06-06 11:10:31 -04:00
parent 636264d782
commit a84b55f36c
2 changed files with 9 additions and 6 deletions
+3
View File
@@ -4,6 +4,9 @@
New features
- [eas] initial EAS v16 and email drafts support
Bug fixes
- [web] use the organizer's alarm by default when accepting IMIP messages (#3934)
2.3.21 (2017-06-01)
-------------------
+6 -6
View File
@@ -240,21 +240,21 @@
- (WOResponse *) _changePartStatusAction: (NSString *) newStatus
withDelegate: (iCalPerson *) delegate
{
WOResponse *response;
SOGoAppointmentObject *eventObject;
iCalEvent *chosenEvent;
//NSException *ex;
WOResponse *response;
iCalAlarm *alarm;
chosenEvent = [self _setupChosenEventAndEventObject: &eventObject];
if (chosenEvent)
{
// For invitations, we take the organizers's alarm to start with
alarm = [[chosenEvent alarms] lastObject];
response = (WOResponse*)[eventObject changeParticipationStatus: newStatus
withDelegate: delegate
alarm: nil
alarm: alarm
forRecurrenceId: [chosenEvent recurrenceId]];
// if (ex)
// response = ex; //[self responseWithStatus: 500];
// else
if (!response)
response = [self responseWith204];
}