[CNContact] CNContact clean fastAddressBook

This commit is contained in:
Brieuc Viel 2017-11-13 11:47:03 +01:00
parent c910192da5
commit 87020ea918

View file

@ -28,9 +28,6 @@
CNContactStore* store; CNContactStore* store;
} }
// static void sync_address_book(ABAddressBookRef addressBook, CFDictionaryRef
// info, void *context);
+ (UIImage *)imageForContact:(Contact *)contact { + (UIImage *)imageForContact:(Contact *)contact {
@synchronized(LinphoneManager.instance.fastAddressBook.addressBookMap) { @synchronized(LinphoneManager.instance.fastAddressBook.addressBookMap) {
UIImage *retImage = [contact avatar]; UIImage *retImage = [contact avatar];
@ -238,11 +235,6 @@
} }
} }
void sync_address_book(ABAddressBookRef addressBook, CFDictionaryRef info, void *context) {
FastAddressBook *fastAddressBook = (__bridge FastAddressBook *)context;
[fastAddressBook reloadAllContacts];
}
#pragma mark - Tools #pragma mark - Tools
+ (NSString *)localizedLabel:(NSString *)label { + (NSString *)localizedLabel:(NSString *)label {