Fix eventId not being returned from matrix-send-file and matrix-send-message nodes

This commit is contained in:
2021-12-19 00:34:51 -07:00
parent 9c836c9262
commit 0b9c59a7be
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -80,7 +80,7 @@ module.exports = function(RED) {
.sendMessage(msg.topic, content)
.then(function(e) {
node.log("File message sent: " + e);
msg.eventId = e.eventId;
msg.eventId = e.event_id;
node.send([msg, null]);
})
.catch(function(e){
+1 -1
View File
@@ -119,7 +119,7 @@ module.exports = function(RED) {
node.server.matrixClient.sendMessage(msg.topic, content)
.then(function(e) {
node.log("Message sent: " + msg.payload);
msg.eventId = e.eventId;
msg.eventId = e.event_id;
node.send([msg, null]);
})
.catch(function(e){