Fix bug. n+1 items were created.

This commit is contained in:
Benoit Marty
2023-02-06 15:59:13 +01:00
parent b0b38598c6
commit e41e6b9205

View File

@@ -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"))
}
}
}