wip sending widget message
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 30s Details

This commit is contained in:
Ladd Hoffman 2024-04-24 18:06:29 -05:00
parent 0319853bc4
commit 1f2c82f4aa
1 changed files with 3 additions and 2 deletions

View File

@ -243,8 +243,9 @@ function App() {
useEffect(() => {
widgetApi.current = new WidgetApi();
// const api = widgetApi.current;
const api = widgetApi.current;
// api.requestCapability(MatrixCapabilities.)
api.start();
}, []);
/* -------------------------------------------------------------------------------- */
@ -331,7 +332,7 @@ function App() {
// TODO: Sign and send a message to the forum-api bot / to a room in matrix
const registerMatrixIdentity = async () => {
widgetApi.current.send('m.message', 'test message');
widgetApi.current.transport.send('m.message', 'test message');
};
/* -------------------------------------------------------------------------------- */