mirror of
https://github.com/Skylar-Tech/node-red-contrib-matrix-chat.git
synced 2025-04-20 21:13:08 -06:00
Fixed: matrix-join-room was requiring userId when it didn't need it Closes #39
This commit is contained in:
parent
58d7d23b2f
commit
614920c40c
@ -38,11 +38,6 @@ module.exports = function(RED) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!msg.userId) {
|
|
||||||
node.error("msg.userId was not set.");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
|
|
||||||
node.server.matrixClient.joinRoom(msg.topic, msg.joinOpts || {})
|
node.server.matrixClient.joinRoom(msg.topic, msg.joinOpts || {})
|
||||||
.then(function(e) {
|
.then(function(e) {
|
||||||
msg.payload = e;
|
msg.payload = e;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user