diff --git a/src/matrix-react.js b/src/matrix-react.js index efc0754..e75f23f 100644 --- a/src/matrix-react.js +++ b/src/matrix-react.js @@ -53,16 +53,14 @@ module.exports = function(RED) { msg.type = 'm.reaction'; - node.server.matrixClient.sendCompleteEvent( + node.server.matrixClient.sendEvent( msg.topic, + 'm.reaction', { - type: 'm.reaction', - content: { - "m.relates_to": { - event_id: eventId, - key: msg.payload, - rel_type: "m.annotation" - } + "m.relates_to": { + event_id: eventId, + key: msg.payload, + rel_type: "m.annotation" } } )