Fix photo display for phone numbers

This commit is contained in:
Gautier Pelloux-Prayer 2014-10-10 13:55:42 +02:00
parent 3e0916e2b1
commit 5bbcf7882d

View file

@ -159,6 +159,7 @@ static void sync_address_book (ABAddressBookRef addressBook, CFDictionaryRef inf
CFStringRef lLabel = ABMultiValueCopyLabelAtIndex(lMap, i);
CFStringRef lLocalizedLabel = ABAddressBookCopyLocalizedLabel(lLabel);
NSString* lNormalizedKey = [FastAddressBook normalizePhoneNumber:(NSString*)lValue];
lNormalizedKey = [FastAddressBook normalizeSipURI:lNormalizedKey];
[addressBookMap setObject:lPerson forKey:lNormalizedKey];
CFRelease(lValue);
if (lLabel) CFRelease(lLabel);