From d36e60b0e984e003d447503a69267b9cbf071a76 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Fri, 14 Jul 2017 14:14:41 -0400 Subject: [PATCH] Respond to CR. // FREEBIE --- .../ConversationView/MessagesViewController.m | 4 ---- Signal/src/ViewControllers/SignalsViewController.m | 6 +----- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/Signal/src/ViewControllers/ConversationView/MessagesViewController.m b/Signal/src/ViewControllers/ConversationView/MessagesViewController.m index 73a046098..bf4a25a6d 100644 --- a/Signal/src/ViewControllers/ConversationView/MessagesViewController.m +++ b/Signal/src/ViewControllers/ConversationView/MessagesViewController.m @@ -3319,10 +3319,6 @@ typedef enum : NSUInteger { // may need to extend the mapping's contents to reflect the current // range. [self updateMessageMappingRangeOptions]; - - [self.uiDatabaseConnection readWithBlock:^(YapDatabaseReadTransaction *transaction) { - [self.messageMappings updateWithTransaction:transaction]; - }]; [self resetContentAndLayout]; return; diff --git a/Signal/src/ViewControllers/SignalsViewController.m b/Signal/src/ViewControllers/SignalsViewController.m index a584f3922..887af45f8 100644 --- a/Signal/src/ViewControllers/SignalsViewController.m +++ b/Signal/src/ViewControllers/SignalsViewController.m @@ -873,12 +873,9 @@ typedef NS_ENUM(NSInteger, CellState) { kArchiveState, kInboxState }; // We want this regardless of if we're currently viewing the archive. // So we run it before the early return [self updateInboxCountLabel]; + [self checkIfEmptyView]; if ([sectionChanges count] == 0 && [rowChanges count] == 0) { - [self.uiDatabaseConnection readWithBlock:^(YapDatabaseReadTransaction *transaction) { - [self.threadMappings updateWithTransaction:transaction]; - }]; - [self checkIfEmptyView]; return; } @@ -932,7 +929,6 @@ typedef NS_ENUM(NSInteger, CellState) { kArchiveState, kInboxState }; } [self.tableView endUpdates]; - [self checkIfEmptyView]; } - (void)checkIfEmptyView {