Calendar module optimizations in multidomain setup

Conflicts:
	NEWS
	UI/Common/UIxUserRightsEditor.m
This commit is contained in:
Francis Lachapelle
2015-07-23 12:06:54 -04:00
parent 8f49778501
commit 613f05ac02
9 changed files with 68 additions and 34 deletions
@@ -523,16 +523,17 @@ NSNumber *iCalDistantFutureNumber = nil;
NSArray *oldAttendees;
unsigned int count, max;
iCalPerson *currentAttendee;
NSString *userID;
NSString *userID, *domain;
userID = [user login];
domain = [user domain];
oldAttendees = [self attendees];
max = [oldAttendees count];
newAttendees = [NSMutableArray arrayWithCapacity: max];
for (count = 0; count < max; count++)
{
currentAttendee = [oldAttendees objectAtIndex: count];
if (![[currentAttendee uid] isEqualToString: userID])
if (![[currentAttendee uidInDomain: domain] isEqualToString: userID])
[newAttendees addObject: currentAttendee];
}