Skip to content

Commit

Permalink
Fix eventId not being returned from matrix-send-file and matrix-sen…
Browse files Browse the repository at this point in the history
…d-message nodes
  • Loading branch information
skylord123 committed Dec 19, 2021
1 parent 9c836c9 commit 0b9c59a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "node-red-contrib-matrix-chat",
"version": "0.2.6",
"version": "0.2.7",
"description": "Matrix chat server client for Node-RED",
"dependencies": {
"fs-extra": "^9.1.0",
Expand Down
2 changes: 1 addition & 1 deletion src/matrix-send-file.js
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down
2 changes: 1 addition & 1 deletion src/matrix-send-message.js
Original file line number Diff line number Diff line change
Expand Up @@ -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){
Expand Down

0 comments on commit 0b9c59a

Please sign in to comment.