diff --git a/libsession/src/main/java/org/session/libsession/utilities/ViewUtils.kt b/libsession/src/main/java/org/session/libsession/utilities/ViewUtils.kt index f67abe8ec4..ea4932d05c 100644 --- a/libsession/src/main/java/org/session/libsession/utilities/ViewUtils.kt +++ b/libsession/src/main/java/org/session/libsession/utilities/ViewUtils.kt @@ -17,7 +17,4 @@ fun Context.getColorFromAttr( } val RecyclerView.isScrolledToBottom: Boolean - get() { - val contentHeight = height - (paddingTop + paddingBottom) - return computeVerticalScrollRange() == computeVerticalScrollOffset() + contentHeight - } + get() = computeVerticalScrollOffset() + computeVerticalScrollExtent() >= computeVerticalScrollRange()