Merge pull request #146 from element-hq/midhun/multiroom/render-notification-decoration

Add API to render notification decoration from EW
This commit is contained in:
R Midhun Suresh 2025-12-02 14:40:46 +05:30 committed by GitHub
commit 44d8f89754
2 changed files with 9 additions and 0 deletions

View File

@ -59,6 +59,7 @@ export interface Api extends LegacyModuleApiExtension, LegacyCustomisationsApiEx
// @alpha
export interface BuiltinsApi {
renderNotificationDecoration(roomId: string): React.ReactNode;
renderRoomAvatar(roomId: string, size?: string): React.ReactNode;
renderRoomView(roomId: string, props?: RoomViewProps): React.ReactNode;
}

View File

@ -53,4 +53,12 @@ export interface BuiltinsApi {
* @param props - Additional props to pass to the room view
*/
renderRoomView(roomId: string, props?: RoomViewProps): React.ReactNode;
/**
* Render notification decoration component from element-web.
*
* @alpha
* @param roomId - Id of the room
*/
renderNotificationDecoration(roomId: string): React.ReactNode;
}