- Fixed: Reactions weren't working because sendCompleteEvent is a private method.

This commit is contained in:
Skylar Sadlier 2022-02-03 09:40:32 -07:00
parent f3df8c6f97
commit 9f0a962991

View File

@ -53,16 +53,14 @@ module.exports = function(RED) {
msg.type = 'm.reaction'; msg.type = 'm.reaction';
node.server.matrixClient.sendCompleteEvent( node.server.matrixClient.sendEvent(
msg.topic, msg.topic,
'm.reaction',
{ {
type: 'm.reaction', "m.relates_to": {
content: { event_id: eventId,
"m.relates_to": { key: msg.payload,
event_id: eventId, rel_type: "m.annotation"
key: msg.payload,
rel_type: "m.annotation"
}
} }
} }
) )