- rename "Invite Room" node to "Invite to Room" to distinguish from new node

- new node "Invite Room" for receiving room invites
- new node "Leave Room" for leaving a room
- updated examples with new nodes
This commit is contained in:
2022-12-05 23:40:05 -07:00
parent 0a34870fa3
commit 3c042ae47d
13 changed files with 467 additions and 17 deletions
-6
View File
@@ -32,12 +32,6 @@ module.exports = function(RED) {
node.status({ fill: "green", shape: "ring", text: "connected" });
});
node.server.on("Room.invite", async function(msg) {
node.send(msg);
});
node.server.on("Room.timeline", async function(event, room, toStartOfTimeline, removed, data, msg) {
// if node has a room ID set we only listen on that room
if(node.roomIds.length && node.roomIds.indexOf(room.roomId) === -1) {