Skip to content

Commit

Permalink
fix(calendar): Fix duplicates in series appointments for Apple's Cale…
Browse files Browse the repository at this point in the history
…ndar
  • Loading branch information
WoodySlum committed Jul 12, 2023
1 parent d550303 commit 57ba539
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion SoObjects/Appointments/SOGoAppointmentObject.m
Original file line number Diff line number Diff line change
Expand Up @@ -963,13 +963,15 @@ - (NSException *) _handleUpdatedEvent: (iCalEvent *) newEvent
NSArray *addedAttendees, *deletedAttendees, *updatedAttendees;
iCalEventChanges *changes;
NSException *ex;
WORequest *rq;

addedAttendees = nil;
deletedAttendees = nil;
updatedAttendees = nil;
rq = [context request];

changes = [newEvent getChangesRelativeToEvent: oldEvent];
if ([changes sequenceShouldBeIncreased])
if ([changes sequenceShouldBeIncreased] || [rq isICal4] || [rq isICal])
{
// Set new attendees status to "needs action" and recompute changes when
// the list of attendees has changed. The list might have changed since
Expand Down
2 changes: 1 addition & 1 deletion SoObjects/Appointments/iCalEventChanges+SOGo.m
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ - (BOOL) sequenceShouldBeIncreased
static NSString *properties[] = {@"organizer", @"startDate", @"endDate",
@"due", @"duration", @"summary",
@"rdate", @"rrule", @"exdate", @"exrule",
@"status", @"location", @"rid", @"timeStampAsDate",
@"status", @"location", @"rid",
nil};
NSString **currentProperty;
BOOL updateRequired;
Expand Down

0 comments on commit 57ba539

Please sign in to comment.