From 1a593e5f346e59894b88e98f87bd0b1d3e2ec2d8 Mon Sep 17 00:00:00 2001 From: Matthew Chen <charlesmchen@gmail.com> Date: Fri, 12 May 2017 11:44:14 -0400 Subject: [PATCH] Respond to CR. // FREEBIE --- Signal/src/ViewControllers/ContactsViewHelper.m | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Signal/src/ViewControllers/ContactsViewHelper.m b/Signal/src/ViewControllers/ContactsViewHelper.m index 0dc8a4c63..27b0512ee 100644 --- a/Signal/src/ViewControllers/ContactsViewHelper.m +++ b/Signal/src/ViewControllers/ContactsViewHelper.m @@ -44,19 +44,18 @@ NS_ASSUME_NONNULL_BEGIN OWSAssert(delegate); _delegate = delegate; - self.shouldNotifyDelegateOfUpdatedContacts = YES; - _blockingManager = [OWSBlockingManager sharedManager]; _blockedPhoneNumbers = [_blockingManager blockedPhoneNumbers]; _contactsManager = [Environment getCurrent].contactsManager; + // We don't want to notify the delegate in the `updateContacts`. + self.shouldNotifyDelegateOfUpdatedContacts = YES; [self updateContacts]; + self.shouldNotifyDelegateOfUpdatedContacts = NO; [self observeNotifications]; - self.shouldNotifyDelegateOfUpdatedContacts = NO; - return self; }