Load photos of LDAP-based address books in listing

Fixes #3942
This commit is contained in:
Francis Lachapelle
2016-12-15 10:18:28 -05:00
parent 15a3bf48d9
commit 651c0fdf14
4 changed files with 22 additions and 0 deletions
@@ -338,6 +338,10 @@
[newRecord setObject: data forKey: @"contactInfo"];
}
// photo => hasPhoto
data = [oldRecord objectForKey: @"photo"];
[newRecord setObject: [NSNumber numberWithInt: [data length] ? 1 : 0] forKey: @"hasPhoto"];
recordSource = [oldRecord objectForKey: @"source"];
if ([recordSource conformsToProtocol: @protocol (SOGoDNSource)] &&
[[(NSObject <SOGoDNSource>*) recordSource MSExchangeHostname] length])