mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-10-31 08:15:02 +00:00
Apply suggestion: 'rangeTo' or the '..' call should be replaced with '..<'
This commit is contained in:
+1
-1
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user