From 9f0a962991365775251d574a2e994374b549157c Mon Sep 17 00:00:00 2001 From: Skylar Sadlier Date: Thu, 3 Feb 2022 09:40:32 -0700 Subject: [PATCH] - Fixed: Reactions weren't working because `sendCompleteEvent` is a private method. --- src/matrix-react.js | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) 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" } } )