Perform contact intersection on AddressBook change.

pull/1/head
Frederic Jacobs 9 years ago
parent 0d97edf7af
commit e8ea00d71a

@ -67,6 +67,7 @@ void onAddressBookChanged(ABAddressBookRef notifyAddressBook, CFDictionaryRef in
ContactsManager* contactsManager = (__bridge ContactsManager*)context;
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
[contactsManager pullLatestAddressBook];
[[[Environment getCurrent] phoneDirectoryManager] forceUpdate];
});
}

@ -171,7 +171,6 @@ typedef enum : NSUInteger {
_attachButton.imageEdgeInsets = UIEdgeInsetsMake(JSQ_IMAGE_INSET, JSQ_IMAGE_INSET, JSQ_IMAGE_INSET, JSQ_IMAGE_INSET);
[_attachButton setImage:[UIImage imageNamed:@"btnAttachments--blue"] forState:UIControlStateNormal];
[self markAllMessagesAsRead];
[self initializeBubbles];

Loading…
Cancel
Save