(fix) carry over the delegatedTo, not only the part stat

This commit is contained in:
Ludovic Marcotte
2015-12-15 15:05:40 -05:00
parent c6dbcb2f7c
commit 28bd4ca318
3 changed files with 11 additions and 10 deletions
@@ -2187,13 +2187,14 @@ inRecurrenceExceptionsForEvent: (iCalEvent *) theEvent
// of its identity (which is different than the email address associated with
// the mail account) prior doing a calendar refresh.
NSMutableArray *attendees;
NSString *partStat;
iCalPerson *participant;
attendees = [NSMutableArray arrayWithArray: [newEvent attendeesWithoutUser: [SOGoUser userWithLogin: owner]]];
partStat = [newEvent participationStatusForUser: [SOGoUser userWithLogin: owner]
attendee: attendee];
[attendee setPartStat: partStat];
participant = [newEvent participantForUser: [SOGoUser userWithLogin: owner]
attendee: attendee];
[attendee setPartStat: [participant partStat]];
[attendee setDelegatedTo: [participant delegatedTo]];
[attendees addObject: attendee];
[newEvent setAttendees: attendees];
}
@@ -39,8 +39,8 @@ extern NSNumber *iCalDistantFutureNumber;
- (iCalPerson *) userAsAttendee: (SOGoUser *) user;
- (NSString *) participationStatusForUser: (SOGoUser *) theUser
attendee: (iCalPerson *) theAttendee;
- (iCalPerson *) participantForUser: (SOGoUser *) theUser
attendee: (iCalPerson *) theAttendee;
- (NSArray *) attendeeUIDs;
- (BOOL) isStillRelevant;
@@ -99,8 +99,8 @@ NSNumber *iCalDistantFutureNumber = nil;
return userAttendee;
}
- (NSString *) participationStatusForUser: (SOGoUser *) theUser
attendee: (iCalPerson *) theAttendee
- (iCalPerson *) participantForUser: (SOGoUser *) theUser
attendee: (iCalPerson *) theAttendee
{
iCalPerson *currentAttendee;
NSEnumerator *attendees;
@@ -122,9 +122,9 @@ NSNumber *iCalDistantFutureNumber = nil;
}
if ([a count] > 0)
return [[a objectAtIndex: 0] partStat];
return [a objectAtIndex: 0];
return [theAttendee partStat];
return theAttendee;
}
- (BOOL) userIsOrganizer: (SOGoUser *) user