Perform contact intersection on AddressBook change.

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

@ -67,6 +67,7 @@ void onAddressBookChanged(ABAddressBookRef notifyAddressBook, CFDictionaryRef in
ContactsManager* contactsManager = (__bridge ContactsManager*)context; ContactsManager* contactsManager = (__bridge ContactsManager*)context;
dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{
[contactsManager pullLatestAddressBook]; [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.imageEdgeInsets = UIEdgeInsetsMake(JSQ_IMAGE_INSET, JSQ_IMAGE_INSET, JSQ_IMAGE_INSET, JSQ_IMAGE_INSET);
[_attachButton setImage:[UIImage imageNamed:@"btnAttachments--blue"] forState:UIControlStateNormal]; [_attachButton setImage:[UIImage imageNamed:@"btnAttachments--blue"] forState:UIControlStateNormal];
[self markAllMessagesAsRead]; [self markAllMessagesAsRead];
[self initializeBubbles]; [self initializeBubbles];

Loading…
Cancel
Save