From 9e5ccf647083f062f7b565782559a0bdbd2f4bd5 Mon Sep 17 00:00:00 2001 From: Ladd Hoffman Date: Thu, 25 Apr 2024 22:03:20 -0500 Subject: [PATCH] fixup --- frontend/src/Widget.jsx | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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'); }; /* -------------------------------------------------------------------------------- */