Skip to content

Commit

Permalink
fix(calendar): Fix duplicate event on Apple Calendar when creating a …
Browse files Browse the repository at this point in the history
…new reccurent event, inviting attendee and changing an occurence
  • Loading branch information
WoodySlum committed Jan 18, 2023
1 parent a5347c7 commit f158402
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions SOPE/NGCards/iCalEventChanges.m
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,9 @@ - (void)_trackPropertyChanges:(iCalEvent *)_from :(iCalEvent *)_to {
[updatedProperties addObject:@"exrule"];
if(!IS_EQUAL([_from exceptionDates], [_to exceptionDates], isEqual:))
[updatedProperties addObject:@"exdate"];
if ([_from respondsToSelector: @selector(lastPossibleRecurrenceStartDate)] && [_to respondsToSelector: @selector(lastPossibleRecurrenceStartDate)])
if(!IS_EQUAL([_from lastPossibleRecurrenceStartDate], [_to lastPossibleRecurrenceStartDate], isEqual:))
[updatedProperties addObject:@"reccurencesStartDate"];
}

- (BOOL)hasChanges {
Expand Down

0 comments on commit f158402

Please sign in to comment.