fix(calendar): Ensure organizers are properly removed from attendee's calendars. Fix issue where organizers were also set as attendees. When an occurrence is deleted, it is now correctly removed from attendee's calendars.

This commit is contained in:
smizrahi
2024-11-18 15:41:14 +01:00
parent cd0324dd49
commit c90e2b0501

View File

@@ -1859,7 +1859,7 @@ inRecurrenceExceptionsForEvent: (iCalEvent *) theEvent
// Retrieve this occurence ID.
recurrenceId = [occurence recurrenceId];
if ([occurence userIsAttendee: ownerUser])
if ([occurence userIsAttendee: ownerUser] && !activeUserIsOwner)
{
// The current user deletes the occurence; let the organizer know that
// the user has declined this occurence.