No explore tab when browsing

This commit is contained in:
Justin Mazzocchi 2021-01-28 22:14:48 -08:00
parent aee0b3e66d
commit 66d5adde71
No known key found for this signature in database
GPG Key ID: E223E6937AAFB01C
1 changed files with 5 additions and 3 deletions

View File

@ -61,13 +61,13 @@ private extension MainNavigationViewController {
var controllers: [UIViewController] = [
TimelinesViewController(
viewModel: viewModel,
rootViewModel: rootViewModel),
ExploreViewController(
viewModel: viewModel.exploreViewModel(),
rootViewModel: rootViewModel)
]
if viewModel.identityContext.identity.authenticated && !pending {
tabBar.isHidden = false
controllers.append(ExploreViewController(viewModel: viewModel.exploreViewModel(),
rootViewModel: rootViewModel))
controllers.append(NotificationsViewController(viewModel: viewModel, rootViewModel: rootViewModel))
let conversationsViewController = TableViewController(
@ -80,6 +80,8 @@ private extension MainNavigationViewController {
controllers.append(conversationsViewController)
setupNewStatusButton()
} else {
tabBar.isHidden = true
}
let secondaryNavigationButton = SecondaryNavigationButton(viewModel: viewModel, rootViewModel: rootViewModel)