diff --git a/features/space/impl/src/main/kotlin/io/element/android/features/space/impl/SpaceFlowNode.kt b/features/space/impl/src/main/kotlin/io/element/android/features/space/impl/SpaceFlowNode.kt index 62cefaeaf2..bf71a6731e 100644 --- a/features/space/impl/src/main/kotlin/io/element/android/features/space/impl/SpaceFlowNode.kt +++ b/features/space/impl/src/main/kotlin/io/element/android/features/space/impl/SpaceFlowNode.kt @@ -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()) } }