Apply suggestion: 'rangeTo' or the '..' call should be replaced with '..<'

This commit is contained in:
Benoit Marty
2026-10-13 12:55:50 +02:00
parent 0dce4b9e49
commit f187409db3
@@ -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)..<visibleRange.last
eventSink(RoomListEvent.UpdateVisibleRange(roomsRange))
}
LazyColumn(