From f3a517681d5a900ce76ae2f0dacba51e54576a46 Mon Sep 17 00:00:00 2001 From: Diogo Date: Sun, 29 Sep 2024 22:13:22 +0100 Subject: [PATCH] varname --- .../kotlin/chat/simplex/common/views/chat/ChatView.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/ChatView.kt b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/ChatView.kt index cb3cfa436f..1ede0b5048 100644 --- a/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/ChatView.kt +++ b/apps/multiplatform/common/src/commonMain/kotlin/chat/simplex/common/views/chat/ChatView.kt @@ -1426,8 +1426,8 @@ fun BoxWithConstraintsScope.FloatingButtons( val lastVisibleItem by remember { derivedStateOf { if (lastIndexOfVisibleItems >= 0) { - val topVisibleItemIndex = chatItems.value.lastIndex - firstVisibleIndex - lastIndexOfVisibleItems - chatItems.value[topVisibleItemIndex] + val lastVisibleChatItemIndex = chatItems.value.lastIndex - firstVisibleIndex - lastIndexOfVisibleItems + chatItems.value[lastVisibleChatItemIndex] } else { null }