Fix global reference to 'inbox' home view.

This commit is contained in:
Matthew Chen 2018-04-26 15:31:36 -04:00
parent 91f5460a0f
commit 371718f72e
1 changed files with 3 additions and 1 deletions

View File

@ -180,7 +180,9 @@ NSString *const kArchivedConversationsReuseIdentifier = @"kArchivedConversations
self.view.backgroundColor = [UIColor whiteColor];
// TODO: Remove this.
[SignalApp.sharedApp setHomeViewController:self];
if (self.homeViewMode == HomeViewMode_Inbox) {
[SignalApp.sharedApp setHomeViewController:self];
}
ReminderView *archiveReminderView =
[ReminderView explanationWithText:NSLocalizedString(@"INBOX_VIEW_ARCHIVE_MODE_REMINDER",