From 1f2c82f4aa3e1468f4a3f1d751ff21fd89b38ad4 Mon Sep 17 00:00:00 2001 From: Ladd Hoffman Date: Wed, 24 Apr 2024 18:06:29 -0500 Subject: [PATCH] wip sending widget message --- frontend/src/App.jsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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'); }; /* -------------------------------------------------------------------------------- */