From 92290a5d4d309c9002279f7417b0cd05cd57cfae Mon Sep 17 00:00:00 2001 From: Michael Kirk <michael.john.kirk@gmail.com> Date: Thu, 1 Sep 2016 11:14:58 -0400 Subject: [PATCH] Fix: Inbox count not updating while viewing archive e.g. If I'm viewing the archive when a new message comes in // FREEBIE --- Signal/src/view controllers/SignalsViewController.m | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Signal/src/view controllers/SignalsViewController.m b/Signal/src/view controllers/SignalsViewController.m index bc0124fa9..375b59158 100644 --- a/Signal/src/view controllers/SignalsViewController.m +++ b/Signal/src/view controllers/SignalsViewController.m @@ -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]; }