Fix bug. n+1 items were created.
This commit is contained in:
parent
6cd9fe18f9
commit
cb158acf00
1 changed files with 2 additions and 2 deletions
|
|
@ -33,8 +33,8 @@ object RoomListRoomSummaryPlaceholders {
|
|||
|
||||
fun createFakeList(size: Int): List<RoomListRoomSummary> {
|
||||
return mutableListOf<RoomListRoomSummary>().apply {
|
||||
for (i in 0..size) {
|
||||
add(create("\$fakeRoom$i"))
|
||||
repeat(size) {
|
||||
add(create("\$fakeRoom$it"))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue