mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-10-30 22:35:42 +00:00
(fix) Automatic certificate update in Address book
This commit is contained in:
1 parent
b8c20b24e5
commit
b8812d64e8
1 file changed
+13
-1
@@ -507,10 +507,22 @@ Class SOGoContactSourceFolderK;
|
||||
- (id<SOGoContactObject>) contactForEmail: (NSString *) theEmail
|
||||
{
|
||||
NSArray *allContacts;
|
||||
NSDictionary *contact;
|
||||
|
||||
allContacts = [self allContactsFromFilter: theEmail excludeGroups: YES excludeLists: YES];
|
||||
contact = [allContacts lastObject];
|
||||
if (contact)
|
||||
{
|
||||
SOGoFolder<SOGoContactObject> *contactObject;
|
||||
SOGoFolder<SOGoContactFolder> *contactFolder;
|
||||
|
||||
return [allContacts lastObject];
|
||||
contactFolder = [self lookupName: [contact objectForKey: @"container"] inContext: context acquire: NO];
|
||||
contactObject = [contactFolder lookupName: [contact objectForKey: @"id"] inContext: context acquire: NO];
|
||||
|
||||
return contactObject;
|
||||
}
|
||||
|
||||
return nil;
|
||||
}
|
||||
|
||||
- (NSData *) certificateForEmail: (NSString *) theEmail
|
||||
|
||||
Reference in new issue
Block a user