Refresh a Space's room list after creating a room in it (#6135)

This commit is contained in:
Jorge Martin Espinosa 2026-02-04 14:09:21 +01:00 committed by GitHub
parent bd6bad963e
commit c960f6e5c9
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -174,6 +174,8 @@ class SpaceFlowNode(
is NavTarget.CreateRoom -> {
val callback = object : CreateRoomEntryPoint.Callback {
override fun onRoomCreated(roomId: RoomId) {
// Reset the room list in the space so this new room is displayed
lifecycleScope.launch { spaceRoomList.reset() }
callback.navigateToRoom(roomId, emptyList())
}
}