mirror of
https://github.com/Skylar-Tech/node-red-contrib-matrix-chat.git
synced 2026-05-21 06:33:16 -06:00
Merge pull request #71 from jacotec/master
Pass invites to the receive object
This commit is contained in:
@@ -260,6 +260,13 @@ module.exports = function(RED) {
|
||||
});
|
||||
} else {
|
||||
node.log("Got invite to join room " + member.roomId);
|
||||
let msg = {
|
||||
type : 'r.invite',
|
||||
payload : 'Invitation',
|
||||
userId : member.userId,
|
||||
topic : member.roomId
|
||||
};
|
||||
node.emit("Room.invite", msg);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user