Makes sure to keep the chat's input on top of the system nav

This commit is contained in:
Vitor Pamplona 2024-12-30 20:13:38 -05:00
parent 09539ac22a
commit b366aee1a9

View File

@ -217,21 +217,23 @@ fun ChatroomListTwoPane(
}
},
second = {
twoPaneNav.innerNav.value?.let {
if (it.route == "Room") {
Chatroom(
roomId = it.id,
accountViewModel = accountViewModel,
nav = nav,
)
}
Box(Modifier.fillMaxSize().systemBarsPadding()) {
twoPaneNav.innerNav.value?.let {
if (it.route == "Room") {
Chatroom(
roomId = it.id,
accountViewModel = accountViewModel,
nav = nav,
)
}
if (it.route == "Channel") {
Channel(
channelId = it.id,
accountViewModel = accountViewModel,
nav = nav,
)
if (it.route == "Channel") {
Channel(
channelId = it.id,
accountViewModel = accountViewModel,
nav = nav,
)
}
}
}
},