Skip to content

Commit

Permalink
room: If no room name is set, create a random room name
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
bekriebel committed Aug 18, 2020
1 parent 19c9151 commit b6b00cc
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions jitsirtc.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit b6b00cc

Please sign in to comment.