Render RoomView instead of simply returning it

This commit is contained in:
R Midhun Suresh
2025-10-23 12:38:36 +05:30
parent 214f3e20a8
commit b9a90b2bfc
@@ -25,11 +25,10 @@ export interface RoomViewProps {
*/ */
export interface BuiltinsApi { export interface BuiltinsApi {
/** /**
* Returns the RoomView component used by Element Web to render a room such that * Render room view component from element-web.
* modules can render it as part of their own custom room views.
* *
* @alpha * @alpha
* @returns The RoomView component. * @param roomId - Id of the room
*/ */
getRoomViewComponent(): React.ComponentType<RoomViewProps>; renderRoomView(roomId: string): React.ReactNode;
} }