fix(calendar): Ensure organizers are properly removed from attendee's calendars. Fix issue where organizers were also set as attendees. Removed organizer in attendees list.

This commit is contained in:
smizrahi committed 2024-12-18 15:53:24 +01:00
1 parent cba0c6d420
commit 393f1694e5
1 file changed
+1 -1
@@ -379,7 +379,7 @@ NSNumber *iCalDistantFutureNumber = nil;
currentAttendee = [attendees nextObject];
while (!isAttendee
&& currentAttendee)
if ([user hasEmail: [currentAttendee rfc822Email]])
if ([user hasEmail: [currentAttendee rfc822Email]] && ![self isOrganizer:[currentAttendee rfc822Email]]) // Exclude organizer if in attendees
isAttendee = YES;
else
currentAttendee = [attendees nextObject];