Respond to CR.

// FREEBIE
pull/1/head
Matthew Chen 8 years ago
parent 5afe9bca6f
commit 1a593e5f34

@ -44,19 +44,18 @@ NS_ASSUME_NONNULL_BEGIN
OWSAssert(delegate); OWSAssert(delegate);
_delegate = delegate; _delegate = delegate;
self.shouldNotifyDelegateOfUpdatedContacts = YES;
_blockingManager = [OWSBlockingManager sharedManager]; _blockingManager = [OWSBlockingManager sharedManager];
_blockedPhoneNumbers = [_blockingManager blockedPhoneNumbers]; _blockedPhoneNumbers = [_blockingManager blockedPhoneNumbers];
_contactsManager = [Environment getCurrent].contactsManager; _contactsManager = [Environment getCurrent].contactsManager;
// We don't want to notify the delegate in the `updateContacts`.
self.shouldNotifyDelegateOfUpdatedContacts = YES;
[self updateContacts]; [self updateContacts];
self.shouldNotifyDelegateOfUpdatedContacts = NO;
[self observeNotifications]; [self observeNotifications];
self.shouldNotifyDelegateOfUpdatedContacts = NO;
return self; return self;
} }

Loading…
Cancel
Save