From 757936291dfe3c897bac0646a3322df99d7f58b7 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Tue, 9 Dec 2008 21:56:24 +0000 Subject: [PATCH] Monotone-Parent: 5335af27b0e9d71da6cdc33a28be0e109f79c8b2 Monotone-Revision: 4e17b08fe2e5110da212dc608cc2b8d378ef094a Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2008-12-09T21:56:24 Monotone-Branch: ca.inverse.sogo --- SoObjects/Appointments/SOGoAppointmentObject.m | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/SoObjects/Appointments/SOGoAppointmentObject.m b/SoObjects/Appointments/SOGoAppointmentObject.m index 55dcbfde5..7c481fddb 100644 --- a/SoObjects/Appointments/SOGoAppointmentObject.m +++ b/SoObjects/Appointments/SOGoAppointmentObject.m @@ -775,13 +775,11 @@ // Identify changes in order to send a notification to the attendee // if necessary and with the proper template. changes = [newEvent getChangesRelativeToEvent: oldEvent]; - if ([[oldEvent sequence] compare: [newEvent sequence]] != NSOrderedSame) - { - if ([changes sequenceShouldBeIncreased]) - isUpdate = YES; - else - hasChanged = NO; - } + if ([[oldEvent sequence] compare: [newEvent sequence]] != NSOrderedSame + && [changes sequenceShouldBeIncreased]) + isUpdate = YES; + else + hasChanged = NO; } // We generate the updated iCalendar file and we save it