Skip to content

Commit e02a05a

Browse files
committed
Render RoomView instead of simply returning it
1 parent 39d670d commit e02a05a

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

packages/element-web-module-api/src/api/builtins.ts

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,10 @@ export interface RoomViewProps {
2525
*/
2626
export interface BuiltinsApi {
2727
/**
28-
* Returns the RoomView component used by Element Web to render a room such that
29-
* modules can render it as part of their own custom room views.
28+
* Render room view component from element-web.
3029
*
3130
* @alpha
32-
* @returns The RoomView component.
31+
* @param roomId - Id of the room
3332
*/
34-
getRoomViewComponent(): React.ComponentType<RoomViewProps>;
33+
renderRoomView(roomId: string): React.ReactNode;
3534
}

0 commit comments

Comments
 (0)