Skip to content

Commit e5ccb12

Browse files
committed
chore(fc): give profile tab to everyone
Signed-off-by: Brandon McAnsh <[email protected]>
1 parent 5eeaec0 commit e5ccb12

File tree

1 file changed

+2
-8
lines changed
  • flipchatApp/src/main/kotlin/xyz/flipchat/app/util

1 file changed

+2
-8
lines changed

flipchatApp/src/main/kotlin/xyz/flipchat/app/util/Router.kt

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,12 @@ class RouterImpl(
6969
override fun tabForIndex(index: Int) = indexTabResolver(index)
7070

7171
private val commonTabs: List<ChildNavTab> =
72-
listOf(ChatTab(0), CashTab(1))
72+
listOf(ChatTab(0), CashTab(1), ProfileTab(2))
7373

7474
private val tabs = MutableStateFlow(commonTabs)
7575

7676
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
77+
// no-op for now
8478
}
8579

8680
override val rootTabs: List<ChildNavTab>

0 commit comments

Comments
 (0)