Avoid mail notifications on superfluous changes

(cont'd)

Fixes #3790
This commit is contained in:
Francis Lachapelle committed 2016-11-03 11:47:21 -04:00
1 parent 42597abf8d
commit c02c4aa834
3 files changed
+52 -45

No files matched your search

@@ -891,7 +891,7 @@ inRecurrenceExceptionsForEvent: (iCalEvent *) theEvent
withType: @"calendar:invitation"];
}
if ([changes hasChanges])
if ([changes hasMajorChanges])
[self sendReceiptEmailForObject: newEvent
addedAttendees: addedAttendees
deletedAttendees: deletedAttendees
@@ -2275,11 +2275,13 @@ inRecurrenceExceptionsForEvent: (iCalEvent *) theEvent
} // if ([[newEvent attendees] count] || [[oldEvent attendees] count])
else
{
[self sendReceiptEmailForObject: newEvent
addedAttendees: nil
deletedAttendees: nil
updatedAttendees: nil
operation: EventUpdated];
changes = [iCalEventChanges changesFromEvent: oldEvent toEvent: newEvent];
if ([changes hasMajorChanges])
[self sendReceiptEmailForObject: newEvent
addedAttendees: nil
deletedAttendees: nil
updatedAttendees: nil
operation: EventUpdated];
}
} // else of if (isNew) ...