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 5175bacb5e
commit 2737d714d9

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())
}
}