(fix) small optimization
parent
3a4365b15a
commit
e3d3eb171d
|
@ -892,10 +892,10 @@ static inline iCalPersonPartStat _userStateInEvent (NSArray *event)
|
||||||
states = [event objectAtIndex: eventPartStatesIndex];
|
states = [event objectAtIndex: eventPartStatesIndex];
|
||||||
count = 0;
|
count = 0;
|
||||||
max = [participants count];
|
max = [participants count];
|
||||||
|
user = [SOGoUser userWithLogin: [event objectAtIndex: eventOwnerIndex]
|
||||||
|
roles: nil];
|
||||||
while (state == iCalPersonPartStatOther && count < max)
|
while (state == iCalPersonPartStatOther && count < max)
|
||||||
{
|
{
|
||||||
user = [SOGoUser userWithLogin: [event objectAtIndex: eventOwnerIndex]
|
|
||||||
roles: nil];
|
|
||||||
if ([user hasEmail: [participants objectAtIndex: count]])
|
if ([user hasEmail: [participants objectAtIndex: count]])
|
||||||
state = [[states objectAtIndex: count] intValue];
|
state = [[states objectAtIndex: count] intValue];
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue