Respond to CR.

// FREEBIE
pull/1/head
Matthew Chen 8 years ago
parent b6264383d3
commit d36e60b0e9

@ -3319,10 +3319,6 @@ typedef enum : NSUInteger {
// may need to extend the mapping's contents to reflect the current // may need to extend the mapping's contents to reflect the current
// range. // range.
[self updateMessageMappingRangeOptions]; [self updateMessageMappingRangeOptions];
[self.uiDatabaseConnection readWithBlock:^(YapDatabaseReadTransaction *transaction) {
[self.messageMappings updateWithTransaction:transaction];
}];
[self resetContentAndLayout]; [self resetContentAndLayout];
return; return;

@ -873,12 +873,9 @@ typedef NS_ENUM(NSInteger, CellState) { kArchiveState, kInboxState };
// We want this regardless of if we're currently viewing the archive. // We want this regardless of if we're currently viewing the archive.
// So we run it before the early return // So we run it before the early return
[self updateInboxCountLabel]; [self updateInboxCountLabel];
[self checkIfEmptyView];
if ([sectionChanges count] == 0 && [rowChanges count] == 0) { if ([sectionChanges count] == 0 && [rowChanges count] == 0) {
[self.uiDatabaseConnection readWithBlock:^(YapDatabaseReadTransaction *transaction) {
[self.threadMappings updateWithTransaction:transaction];
}];
[self checkIfEmptyView];
return; return;
} }
@ -932,7 +929,6 @@ typedef NS_ENUM(NSInteger, CellState) { kArchiveState, kInboxState };
} }
[self.tableView endUpdates]; [self.tableView endUpdates];
[self checkIfEmptyView];
} }
- (void)checkIfEmptyView { - (void)checkIfEmptyView {

Loading…
Cancel
Save