We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5eeaec0 commit e5ccb12Copy full SHA for e5ccb12
flipchatApp/src/main/kotlin/xyz/flipchat/app/util/Router.kt
@@ -69,18 +69,12 @@ class RouterImpl(
69
override fun tabForIndex(index: Int) = indexTabResolver(index)
70
71
private val commonTabs: List<ChildNavTab> =
72
- listOf(ChatTab(0), CashTab(1))
+ listOf(ChatTab(0), CashTab(1), ProfileTab(2))
73
74
private val tabs = MutableStateFlow(commonTabs)
75
76
override suspend fun checkTabs() {
77
- val updatedTabs = if (userManager.userFlags?.isStaff == true) {
78
- commonTabs + listOf(ProfileTab(2))
79
- } else {
80
- commonTabs
81
- }
82
-
83
- tabs.value = updatedTabs
+ // no-op for now
84
}
85
86
override val rootTabs: List<ChildNavTab>
0 commit comments