Keeping chatroom list scroll up top if it was up top.

This commit is contained in:
Vitor Pamplona
2023-02-01 12:40:31 -03:00
parent 663eb9c604
commit 2e17535a60

View File

@@ -87,7 +87,7 @@ private fun FeedLoaded(
),
state = listState
) {
itemsIndexed(state.feed.value, key = { index, item -> item.idHex }) { index, item ->
itemsIndexed(state.feed.value, key = { index, item -> if (index == 0) index else item.idHex }) { index, item ->
ChatroomCompose(
item,
accountViewModel = accountViewModel,