fix(calendar): Fix duplicates in series appointments for Apple's Calendar

This commit is contained in:
smizrahi
2023-07-12 08:48:44 +02:00
parent d55030323b
commit 57ba5397e5
2 changed files with 4 additions and 2 deletions

View File

@@ -963,13 +963,15 @@ inRecurrenceExceptionsForEvent: (iCalEvent *) theEvent
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

View File

@@ -30,7 +30,7 @@
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;