Refresh a Space's room list after creating a room in it (#6135)
This commit is contained in:
committed by
GitHub
parent
5175bacb5e
commit
2737d714d9
@@ -174,6 +174,8 @@ class SpaceFlowNode(
|
|||||||
is NavTarget.CreateRoom -> {
|
is NavTarget.CreateRoom -> {
|
||||||
val callback = object : CreateRoomEntryPoint.Callback {
|
val callback = object : CreateRoomEntryPoint.Callback {
|
||||||
override fun onRoomCreated(roomId: RoomId) {
|
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())
|
callback.navigateToRoom(roomId, emptyList())
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user