mirror of
https://github.com/Skylar-Tech/node-red-contrib-matrix-chat.git
synced 2026-05-18 21:23:14 -06:00
Version 0.2.4
- Can now configure a room on the invite-room node (instead of having to pass it in on the msg) - Changed how the connection event was handled by nodes - matrix-synapse-join-room node was broken (was trying to access a variable that was never defined). - olm library updated to 3.2.1 to hopefully fix "account.generate_fallback_key is not a function" Fixes #26 - Added description to the server configuration node that describes how to create a user for use with this module - Update link to create room api for matrix-create-room.html
This commit is contained in:
@@ -6,6 +6,7 @@ module.exports = function(RED) {
|
||||
|
||||
this.name = n.name;
|
||||
this.server = RED.nodes.getNode(n.server);
|
||||
this.roomId = n.roomId;
|
||||
|
||||
if(!this.server) {
|
||||
node.error('Server must be configured on the node.');
|
||||
@@ -47,7 +48,7 @@ module.exports = function(RED) {
|
||||
|
||||
msg.topic = node.roomId || msg.topic;
|
||||
if(!msg.topic) {
|
||||
node.error("msg.topic must be defined or configured on the node.");
|
||||
node.error("room must be defined in either msg.topic or in node config");
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user