From 651a1c3910b9eb870df654da7db294963e703966 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Tue, 1 Nov 2016 15:26:59 -0400 Subject: [PATCH] Avoid mail notifications on superfluous changes Fixes #3790 --- NEWS | 1 + SoObjects/Appointments/SOGoAppointmentObject.m | 13 +++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/NEWS b/NEWS index b2f9e2b2a..77690b88c 100644 --- a/NEWS +++ b/NEWS @@ -26,6 +26,7 @@ Bug fixes - [web] added missing options to subscribed calendars (#3863) - [web] fixed resource conflict error handling (403 vs 409 HTTP code) - [web] restored immediate deletion of messages (without moving them to the trash) + - [web] avoid mail notifications on superfluous event changes (#3790) - [eas] improve handling of email folders without a parent - [eas] never send IMIP reply when the "initiator" is Outlook 2013/2016 - [core] only consider SMTP addresses for AD's proxyAddresses (#3842) diff --git a/SoObjects/Appointments/SOGoAppointmentObject.m b/SoObjects/Appointments/SOGoAppointmentObject.m index e03e6499c..912b5d69b 100644 --- a/SoObjects/Appointments/SOGoAppointmentObject.m +++ b/SoObjects/Appointments/SOGoAppointmentObject.m @@ -890,12 +890,13 @@ inRecurrenceExceptionsForEvent: (iCalEvent *) theEvent toAttendees: addedAttendees withType: @"calendar:invitation"]; } - - [self sendReceiptEmailForObject: newEvent - addedAttendees: addedAttendees - deletedAttendees: deletedAttendees - updatedAttendees: updatedAttendees - operation: EventUpdated]; + + if ([changes hasChanges]) + [self sendReceiptEmailForObject: newEvent + addedAttendees: addedAttendees + deletedAttendees: deletedAttendees + updatedAttendees: updatedAttendees + operation: EventUpdated]; return nil; }