Skip to content

Commit 85b251e

Browse files
committed
feat: pass RoomViewProps to room view in renderRoomView
1 parent 1509f86 commit 85b251e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/modules/BuiltinsApi.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,9 @@ export class ElementWebBuiltinsApi implements BuiltinsApi {
3535
return this._roomView;
3636
}
3737

38-
public renderRoomView(roomId: string): React.ReactNode {
38+
public renderRoomView(roomId: string, props?: Omit<RoomViewProps, "roomId">): React.ReactNode {
3939
const Component = this.getRoomViewComponent();
40-
return <Component roomId={roomId} />;
40+
return <Component roomId={roomId} {...props} />;
4141
}
4242

4343
public renderRoomAvatar(roomId: string, size?: string): React.ReactNode {

0 commit comments

Comments
 (0)