From 5b487fad8b2b2d6a7ef02b6c6b6993c31be4e9c9 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Wed, 13 Aug 2008 22:40:05 +0000 Subject: [PATCH] Monotone-Parent: 563fcb93a27e1179ab8c69db8761cb2ff3033025 Monotone-Revision: f31bb2d6a249b9b688f94079bb962b96fd570e79 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-08-13T22:40:05 Monotone-Branch: ca.inverse.sogo --- NEWS | 1 + SoObjects/Appointments/SOGoAppointmentObject.m | 2 +- SoObjects/Appointments/SOGoCalendarComponent.h | 2 +- SoObjects/Appointments/SOGoCalendarComponent.m | 4 ++-- 4 files changed, 5 insertions(+), 4 deletions(-) diff --git a/NEWS b/NEWS index 805ac4f66..9bb1178e3 100644 --- a/NEWS +++ b/NEWS @@ -4,6 +4,7 @@ - fixed a bug where the search of contacts would be done in authentication-only LDAP repositories - added the ability to transfer an event from one calendar to another - fixed a bug where deleting a contact would leave it listed in the contact list until the next refresh +- fixed a bug where events shared among different attendees would no longer be updated automatically 0.9.0-20080729 (1.0 rc7) ------------------------ diff --git a/SoObjects/Appointments/SOGoAppointmentObject.m b/SoObjects/Appointments/SOGoAppointmentObject.m index ea691fc36..672660c16 100644 --- a/SoObjects/Appointments/SOGoAppointmentObject.m +++ b/SoObjects/Appointments/SOGoAppointmentObject.m @@ -419,7 +419,7 @@ { if ([[attendee rsvp] isEqualToString: @"true"] && [event isStillRelevant]) - [self sendResponseToOrganizer]; + [self sendResponseToOrganizer: event]; organizerUID = [[event organizer] uid]; if (organizerUID) ex = [self _updateAttendee: attendee diff --git a/SoObjects/Appointments/SOGoCalendarComponent.h b/SoObjects/Appointments/SOGoCalendarComponent.h index a941cc0a8..1e8970717 100644 --- a/SoObjects/Appointments/SOGoCalendarComponent.h +++ b/SoObjects/Appointments/SOGoCalendarComponent.h @@ -65,7 +65,7 @@ toAttendees: (NSArray *) _attendees; - (void) sendIMIPReplyForEvent: (iCalRepeatableEntityObject *) event to: (iCalPerson *) recipient; -- (void) sendResponseToOrganizer; +- (void) sendResponseToOrganizer: (iCalRepeatableEntityObject *) newComponent; // - (BOOL) isOrganizerOrOwner: (SOGoUser *) user; diff --git a/SoObjects/Appointments/SOGoCalendarComponent.m b/SoObjects/Appointments/SOGoCalendarComponent.m index de77d9bc9..368f1ebb8 100644 --- a/SoObjects/Appointments/SOGoCalendarComponent.m +++ b/SoObjects/Appointments/SOGoCalendarComponent.m @@ -677,13 +677,13 @@ _occurenceHasID (iCalRepeatableEntityObject *occurence, NSString *recID) } } -- (void) sendResponseToOrganizer +- (void) sendResponseToOrganizer: (iCalRepeatableEntityObject *) newComponent { iCalPerson *organizer, *attendee; iCalEvent *event; SOGoUser *ownerUser; - event = [[self component: NO secure: NO] itipEntryWithMethod: @"reply"]; + event = [newComponent itipEntryWithMethod: @"reply"]; ownerUser = [SOGoUser userWithLogin: owner roles: nil]; if (![event userIsOrganizer: ownerUser]) {