From c53f777bc15b0cf3d5dd716d11302d46179753ff Mon Sep 17 00:00:00 2001 From: Michael Kirk Date: Mon, 16 Jul 2018 13:51:00 -0600 Subject: [PATCH] CR: explanatory comment --- Signal/src/ViewControllers/HomeView/HomeViewController.m | 2 ++ Signal/src/ViewControllers/NewContactThreadViewController.m | 2 ++ 2 files changed, 4 insertions(+) diff --git a/Signal/src/ViewControllers/HomeView/HomeViewController.m b/Signal/src/ViewControllers/HomeView/HomeViewController.m index 2d2fe06c6..a58c2da33 100644 --- a/Signal/src/ViewControllers/HomeView/HomeViewController.m +++ b/Signal/src/ViewControllers/HomeView/HomeViewController.m @@ -335,6 +335,8 @@ NSString *const kArchivedConversationsReuseIdentifier = @"kArchivedConversations - (void)updateReminderViews { self.archiveReminderView.hidden = self.homeViewMode != HomeViewMode_Archive; + // App is killed and restarted when the user changes their contact permissions, so need need to "observe" anything + // to re-render this. self.missingContactsPermissionView.hidden = !self.contactsManager.isSystemContactsDenied; self.deregisteredView.hidden = !TSAccountManager.sharedInstance.isDeregistered; self.outageView.hidden = !OutageDetection.sharedManager.hasOutage; diff --git a/Signal/src/ViewControllers/NewContactThreadViewController.m b/Signal/src/ViewControllers/NewContactThreadViewController.m index 880d7dc7f..43c07c30f 100644 --- a/Signal/src/ViewControllers/NewContactThreadViewController.m +++ b/Signal/src/ViewControllers/NewContactThreadViewController.m @@ -283,6 +283,8 @@ NS_ASSUME_NONNULL_BEGIN __weak NewContactThreadViewController *weakSelf = self; + // App is killed and restarted when the user changes their contact permissions, so need need to "observe" anything + // to re-render this. if (self.contactsViewHelper.contactsManager.isSystemContactsDenied) { OWSTableItem *contactReminderItem = [OWSTableItem itemWithCustomCellBlock:^{