From b6b00cc082fab174bc7678c8a97e40832aa6a8aa Mon Sep 17 00:00:00 2001 From: "Brint E. Kriebel" Date: Tue, 18 Aug 2020 13:26:26 -0700 Subject: [PATCH] room: If no room name is set, create a random room name This would cause the module to not work if used on a fresh world. Create the room name with the same random pattern used when changing the server url. --- jitsirtc.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/jitsirtc.js b/jitsirtc.js index 2747595..c1a8fba 100644 --- a/jitsirtc.js +++ b/jitsirtc.js @@ -123,6 +123,12 @@ class JitsiRTCClient extends WebRTCInterface { this._onDisconnectHandler, ); + // Set a room name if one doesn't yet exist + if (!this.settings.serverRoom) { + this.debug('No meeting room set, creating random name.'); + this.settings.serverRoom = randomID(32); + } + this._room = this.settings.serverRoom; this.debug('Meeting room name: ', this._room);