- Fixed: Reactions weren't working because sendCompleteEvent
is a private method.
This commit is contained in:
parent
f3df8c6f97
commit
9f0a962991
@ -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"
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
Loading…
Reference in New Issue
Block a user