mirror of
https://github.com/Novaloop-AG/element-x-android.git
synced 2026-11-02 21:32:34 +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 ->
|
OnVisibleRangeChangeEffect(lazyListState) { visibleRange ->
|
||||||
// The first item of the list is the banner slot, remove it to get the range of the rooms
|
// 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))
|
eventSink(RoomListEvent.UpdateVisibleRange(roomsRange))
|
||||||
}
|
}
|
||||||
LazyColumn(
|
LazyColumn(
|
||||||
|
|||||||
Reference in New Issue
Block a user