Monotone-Parent: 052d83040e0d4ee5456c2ee8ef81f588178b384b

Monotone-Revision: c4e25d84f9042e9b35f379e1d77a96da56e08bc0

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2007-08-15T20:17:11
Monotone-Branch: ca.inverse.sogo
maint-2.0.2
Wolfgang Sourdeau 2007-08-15 20:17:11 +00:00
parent 401c6c8ae2
commit b952f2fbb3
1 changed files with 7 additions and 2 deletions

View File

@ -23,6 +23,7 @@
#import <Foundation/NSArray.h>
#import <Foundation/NSEnumerator.h>
#import <SoObjects/SOGo/NSArray+Utilities.h>
#import <SoObjects/SOGo/SOGoUser.h>
#import "iCalEntityObject+SOGo.h"
@ -32,12 +33,14 @@
- (BOOL) userIsParticipant: (SOGoUser *) user
{
NSEnumerator *emails;
NSArray *identities;
NSString *currentEmail;
BOOL response;
response = NO;
emails = [[user allEmails] objectEnumerator];
identities = [user allIdentities];
emails = [[identities objectsForKey: @"email"] objectEnumerator];
currentEmail = [emails nextObject];
while (!response && currentEmail)
if ([self isParticipant: currentEmail])
@ -51,12 +54,14 @@
- (BOOL) userIsOrganizer: (SOGoUser *) user
{
NSEnumerator *emails;
NSArray *identities;
NSString *currentEmail;
BOOL response;
response = NO;
emails = [[user allEmails] objectEnumerator];
identities = [user allIdentities];
emails = [[identities objectsForKey: @"email"] objectEnumerator];
currentEmail = [emails nextObject];
while (!response && currentEmail)
if ([self isOrganizer: currentEmail])