From fd7f6149defc77b01902f0fdbdbda715604e9923 Mon Sep 17 00:00:00 2001 From: Francis Lachapelle Date: Tue, 2 Dec 2008 03:35:34 +0000 Subject: [PATCH] Monotone-Parent: 8cbcf72bb3b427bf1185e7aa4bed02fcd25f9b09 Monotone-Revision: 884376eab50534fb111e8f427846e2eb674bb704 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2008-12-02T03:35:34 Monotone-Branch: ca.inverse.sogo --- SoObjects/Appointments/SOGoAppointmentObject.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/SoObjects/Appointments/SOGoAppointmentObject.m b/SoObjects/Appointments/SOGoAppointmentObject.m index 764a683de..4d9119776 100644 --- a/SoObjects/Appointments/SOGoAppointmentObject.m +++ b/SoObjects/Appointments/SOGoAppointmentObject.m @@ -421,7 +421,6 @@ shouldAddSentBy: (BOOL) b { SOGoAppointmentObject *eventObject; - //iCalEvent *event; iCalCalendar *calendar; iCalEntityObject *event; iCalPerson *otherAttendee; @@ -461,6 +460,8 @@ SOGoUser *currentUser; int i; + currentUser = [context activeUser]; + for (i = 0; i < [events count]; i++) { event = [events objectAtIndex: i]; @@ -470,7 +471,6 @@ // If one has accepted / declined an invitation on behalf of // the attendee, we add the user to the SENT-BY attribute. - currentUser = [context activeUser]; if (b && ![[currentUser login] isEqualToString: [theOwnerUser login]]) { NSString *currentEmail;