From c4a1b68eb58152a94c314841836ca6f367bda944 Mon Sep 17 00:00:00 2001 From: smizrahi Date: Tue, 8 Aug 2023 15:12:32 +0200 Subject: [PATCH] fix(calendar): Do not send tentative participation mail when user open mail or add ics to calendar app --- SoObjects/Appointments/SOGoAppointmentObject.m | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/SoObjects/Appointments/SOGoAppointmentObject.m b/SoObjects/Appointments/SOGoAppointmentObject.m index 01ea41156..dd06daacd 100644 --- a/SoObjects/Appointments/SOGoAppointmentObject.m +++ b/SoObjects/Appointments/SOGoAppointmentObject.m @@ -2216,8 +2216,10 @@ inRecurrenceExceptionsForEvent: (iCalEvent *) theEvent // we receive an external invitation (IMIP/ITIP) and we accept it // from a CUA - it gets added to a specific CalDAV calendar using a PUT // - else if ([event userIsAttendee: ownerUser] && [self _shouldScheduleEvent: [event userAsAttendee: ownerUser]]) - { + else if ([event userIsAttendee: ownerUser] + && [self _shouldScheduleEvent: [event userAsAttendee: ownerUser]] + && iCalPersonPartStatNeedsAction != [[event userAsAttendee: ownerUser] participationStatus]) + { [self sendResponseToOrganizer: event from: ownerUser]; }