From e3d3eb171d569923a229d5c16b95938fca1293a8 Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Thu, 24 Sep 2015 11:03:19 -0400 Subject: [PATCH] (fix) small optimization --- UI/Scheduler/UIxCalListingActions.m | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UI/Scheduler/UIxCalListingActions.m b/UI/Scheduler/UIxCalListingActions.m index fdf1f01c4..bacb6036c 100644 --- a/UI/Scheduler/UIxCalListingActions.m +++ b/UI/Scheduler/UIxCalListingActions.m @@ -892,10 +892,10 @@ static inline iCalPersonPartStat _userStateInEvent (NSArray *event) states = [event objectAtIndex: eventPartStatesIndex]; count = 0; max = [participants count]; + user = [SOGoUser userWithLogin: [event objectAtIndex: eventOwnerIndex] + roles: nil]; while (state == iCalPersonPartStatOther && count < max) { - user = [SOGoUser userWithLogin: [event objectAtIndex: eventOwnerIndex] - roles: nil]; if ([user hasEmail: [participants objectAtIndex: count]]) state = [[states objectAtIndex: count] intValue]; else