Refresh a Space's room list after creating a room in it (#6135)
This commit is contained in:
parent
bd6bad963e
commit
c960f6e5c9
1 changed files with 2 additions and 0 deletions
|
|
@ -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())
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue