From 6a2b647b4babd8518164cb8af8b308425ef2ebee Mon Sep 17 00:00:00 2001 From: Ladd Hoffman Date: Fri, 26 Apr 2024 17:59:17 -0500 Subject: [PATCH] text event --- frontend/src/Widget.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/Widget.jsx b/frontend/src/Widget.jsx index 365eb8a..7b8ccd7 100644 --- a/frontend/src/Widget.jsx +++ b/frontend/src/Widget.jsx @@ -370,7 +370,10 @@ function Widget() { // TODO: Sign and send a message to the forum-api bot / to a room in matrix const registerMatrixIdentity = async () => { - await widgetApi.current.sendRoomEvent('m.room.message', 'test message'); + await widgetApi.current.sendRoomEvent('m.room.message', { + body: 'test message', + msgtype: 'm.text', + }); }; /* -------------------------------------------------------------------------------- */