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:
@@ -59,6 +59,7 @@ export interface Api extends LegacyModuleApiExtension, LegacyCustomisationsApiEx
|
|||||||
|
|
||||||
// @alpha
|
// @alpha
|
||||||
export interface BuiltinsApi {
|
export interface BuiltinsApi {
|
||||||
|
renderNotificationDecoration(roomId: string): React.ReactNode;
|
||||||
renderRoomAvatar(roomId: string, size?: string): React.ReactNode;
|
renderRoomAvatar(roomId: string, size?: string): React.ReactNode;
|
||||||
renderRoomView(roomId: string, props?: RoomViewProps): React.ReactNode;
|
renderRoomView(roomId: string, props?: RoomViewProps): React.ReactNode;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -53,4 +53,12 @@ export interface BuiltinsApi {
|
|||||||
* @param props - Additional props to pass to the room view
|
* @param props - Additional props to pass to the room view
|
||||||
*/
|
*/
|
||||||
renderRoomView(roomId: string, props?: RoomViewProps): React.ReactNode;
|
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;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user