From 0f2c0bdacd957943dc95c237ff4c396d8cdbb7c2 Mon Sep 17 00:00:00 2001 From: Diogo Date: Sun, 29 Sep 2024 21:49:52 +0100 Subject: [PATCH] closer near bottom --- .../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 3fbdc67a58..ded96b8ed4 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 @@ -1362,8 +1362,8 @@ fun BoxWithConstraintsScope.FloatingButtons( elapsedOffset += it.size } } - - isNearBottom = (visibleItemsInfo.firstOrNull()?.index ?: 0) < nearBottomIndex + + isNearBottom = (visibleItemsInfo.firstOrNull()?.index ?: 0) <= nearBottomIndex } }