Fix: Inbox count not updating while viewing archive

e.g. If I'm viewing the archive when a new message comes in

// FREEBIE
pull/1/head
Michael Kirk 9 years ago
parent ef6784ed95
commit 92290a5d4d

@ -400,6 +400,10 @@ static NSString *const kShowSignupFlowSegue = @"showSignupFlow";
forNotifications:notifications
withMappings:self.threadMappings];
// We want this regardless of if we're currently viewing the archive.
// So we run it before the early return
[self updateInboxCountLabel];
if ([sectionChanges count] == 0 && [rowChanges count] == 0) {
return;
}
@ -454,7 +458,6 @@ static NSString *const kShowSignupFlowSegue = @"showSignupFlow";
}
[self.tableView endUpdates];
[self updateInboxCountLabel];
[self checkIfEmptyView];
}

Loading…
Cancel
Save