From f187409db3340d5afe2603e3f0e6eeff6a5419d0 Mon Sep 17 00:00:00 2001 From: Benoit Marty Date: Tue, 13 Oct 2026 12:55:50 +0200 Subject: [PATCH] Apply suggestion: 'rangeTo' or the '..' call should be replaced with '..<' --- .../features/home/impl/components/RoomListContentView.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/features/home/impl/src/main/kotlin/io/element/android/features/home/impl/components/RoomListContentView.kt b/features/home/impl/src/main/kotlin/io/element/android/features/home/impl/components/RoomListContentView.kt index 874f4f4784..09dc51d68f 100644 --- a/features/home/impl/src/main/kotlin/io/element/android/features/home/impl/components/RoomListContentView.kt +++ b/features/home/impl/src/main/kotlin/io/element/android/features/home/impl/components/RoomListContentView.kt @@ -239,7 +239,7 @@ private fun RoomsViewList( ) { OnVisibleRangeChangeEffect(lazyListState) { visibleRange -> // The first item of the list is the banner slot, remove it to get the range of the rooms - val roomsRange = (visibleRange.first - 1).coerceAtLeast(0)..(visibleRange.last - 1) + val roomsRange = (visibleRange.first - 1).coerceAtLeast(0)..