- Fixed: Reactions weren't working because sendCompleteEvent
is a private method.
This commit is contained in:
parent
f3df8c6f97
commit
9f0a962991
@ -53,18 +53,16 @@ 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"
|
||||
}
|
||||
}
|
||||
}
|
||||
)
|
||||
.then(function(e) {
|
||||
msg.eventId = e.event_id;
|
||||
|
Loading…
Reference in New Issue
Block a user