diff --git a/frontend/src/Widget.jsx b/frontend/src/Widget.jsx index 4220eee..7679ff8 100644 --- a/frontend/src/Widget.jsx +++ b/frontend/src/Widget.jsx @@ -370,11 +370,7 @@ function Widget() { // TODO: Sign and send a message to the forum-api bot / to a room in matrix const registerMatrixIdentity = async () => { - if (widgetApi.current.hasCapability(sendMessageCapability)) { - await widgetApi.current.sendRoomEvent('m.message', 'test message', '!HMoNkuTRLqQGhhlMNO:matrix.dgov.io'); - } else { - console.log('Widget has not been granted the send message capability'); - } + await widgetApi.current.sendRoomEvent('m.message', 'test message', '!HMoNkuTRLqQGhhlMNO:matrix.dgov.io'); }; /* -------------------------------------------------------------------------------- */