Slugifies the Jitsi room name

This will avoid Jitsi breaking on unexpected characters and displaying a HTTP 404 error.
This commit is contained in:
David Négrier 2021-02-10 11:40:59 +01:00
parent f6e93da48a
commit 91fddd6893
3 changed files with 30 additions and 3 deletions

View file

@ -673,12 +673,13 @@ export class GameScene extends ResizableScene implements CenterListener {
this.stopJitsi();
}else{
const openJitsiRoomFunction = () => {
const roomName = jitsiFactory.getRoomName(newValue.toString(), this.instance);
if (JITSI_PRIVATE_MODE) {
const adminTag = allProps.get("jitsiRoomAdminTag") as string|undefined;
this.connection.emitQueryJitsiJwtMessage(this.instance.replace('/', '-') + "-" + newValue, adminTag);
this.connection.emitQueryJitsiJwtMessage(roomName, adminTag);
} else {
this.startJitsi(newValue as string, undefined);
this.startJitsi(roomName, undefined);
}
layoutManager.removeActionButton('jitsiRoom', this.userInputManager);
}