diff --git a/frontend/src/App.jsx b/frontend/src/App.jsx index c444445..ad17e76 100644 --- a/frontend/src/App.jsx +++ b/frontend/src/App.jsx @@ -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'); }; /* -------------------------------------------------------------------------------- */