mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-09 23:38:50 +00:00
(fix) Automatic certificate update in Address book
This commit is contained in:
@@ -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