From 5afe9bca6f243463aa8e1b5de7aabb7a56c299e8 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Fri, 12 May 2017 11:43:13 -0400 Subject: [PATCH] Respond to CR. // FREEBIE --- Signal/src/ViewControllers/ContactsViewHelper.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Signal/src/ViewControllers/ContactsViewHelper.m b/Signal/src/ViewControllers/ContactsViewHelper.m index d3efe58cf..0dc8a4c63 100644 --- a/Signal/src/ViewControllers/ContactsViewHelper.m +++ b/Signal/src/ViewControllers/ContactsViewHelper.m @@ -26,7 +26,7 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic) NSArray *blockedPhoneNumbers; -@property (nonatomic) BOOL suppressDelegateEvents; +@property (nonatomic) BOOL shouldNotifyDelegateOfUpdatedContacts; @end @@ -44,7 +44,7 @@ NS_ASSUME_NONNULL_BEGIN OWSAssert(delegate); _delegate = delegate; - self.suppressDelegateEvents = YES; + self.shouldNotifyDelegateOfUpdatedContacts = YES; _blockingManager = [OWSBlockingManager sharedManager]; _blockedPhoneNumbers = [_blockingManager blockedPhoneNumbers]; @@ -55,7 +55,7 @@ NS_ASSUME_NONNULL_BEGIN [self observeNotifications]; - self.suppressDelegateEvents = NO; + self.shouldNotifyDelegateOfUpdatedContacts = NO; return self; } @@ -163,7 +163,7 @@ NS_ASSUME_NONNULL_BEGIN self.nonSignalContacts = nil; // Don't fire delegate "change" events during initialization. - if (!self.suppressDelegateEvents) { + if (!self.shouldNotifyDelegateOfUpdatedContacts) { [self.delegate contactsViewHelperDidUpdateContacts]; } }