Monotone-Parent: bdd1da1e1be522e483da3257b19a669856f518d6

Monotone-Revision: c5233a2a4e6a6abdb50191daf1eb589c9ff5cf80

Monotone-Author: wsourdeau@inverse.ca
Monotone-Date: 2012-02-14T21:23:31
This commit is contained in:
Wolfgang Sourdeau
2012-02-14 21:23:31 +00:00
parent 3da73073e8
commit da111aa6cc
3 changed files with 20 additions and 2 deletions
+4 -1
View File
@@ -817,6 +817,7 @@
NSMutableArray *emails;
NSString *uid, *email, *info;
NSNumber *isGroup;
id <SOGoSource> source;
compactContacts = [NSMutableDictionary dictionary];
while ((userEntry = [contacts nextObject]))
@@ -829,7 +830,9 @@
{
returnContact = [NSMutableDictionary dictionary];
[returnContact setObject: uid forKey: @"c_uid"];
[returnContact setObject: [userEntry objectForKey: @"source"] forKey: @"source"];
source = [userEntry objectForKey: @"source"];
if (source)
[returnContact setObject: source forKey: @"source"];
[compactContacts setObject: returnContact forKey: uid];
}
if (![[returnContact objectForKey: @"c_name"] length])