matrix-org / matrix-react-sdk-module-api

API surface for writing Modules for the react-sdk
Apache License 2.0
3 stars 8 forks source link

Add hook to add button / modify messages #48

Open tobiasdiez opened 1 month ago

tobiasdiez commented 1 month ago

It is possible to add a button to the room header via https://github.com/matrix-org/matrix-react-sdk-module-api/blob/a4b4a93f6b56af1dd66d7e3a7bf00d68d7aa2f64/src/lifecycles/RoomViewLifecycle.ts#L42, but I couldn't find a similar hook to add a button to a message in the room, or otherwise change the appearance of the displayed messages.

Usecase: translate a given message into a different language