front: remove instance name from jitsi room names if global

This commit is contained in:
Ludwig Behm 2021-03-28 17:52:57 +02:00
parent 57d2535bc2
commit 2c1b5a90ea
No known key found for this signature in database
GPG key ID: D344835D63B89384

View file

@ -131,7 +131,7 @@ class JitsiFactory {
* Slugifies the room name and prepends the room name with the instance
*/
public getRoomName(roomName: string, instance: string): string {
return slugify(instance.replace("/", "-") + "-" + roomName);
return slugify((instance !== 'global') ? instance.replace("/", "-") + "-" + roomName : roomName);
}
public async start(