mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Load room details on appearance. Avoid overwhelming the rust runtime and slow down the room timeline loading.
This commit is contained in:
@@ -114,7 +114,6 @@ struct RoomCell: View {
|
||||
.frame(width: 40, height: 40)
|
||||
.mask(Circle())
|
||||
} else {
|
||||
let _ = context.send(viewAction: .loadRoomData(roomIdentifier: room.id))
|
||||
Image(systemName: "person.3")
|
||||
.frame(width: 40, height: 40)
|
||||
}
|
||||
@@ -140,6 +139,9 @@ struct RoomCell: View {
|
||||
}
|
||||
}
|
||||
.frame(minHeight: 60.0)
|
||||
.onAppear {
|
||||
context.send(viewAction: .loadRoomData(roomIdentifier: room.id))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user