[RN] Fix room name case sensitivity

It turns out that it is not enough to give lib-jitsi-meet the room name
in lower case. BOSH also needs the room name in lower case.
This commit is contained in:
Lyubomir Marinov 2017-01-28 17:26:09 -06:00
parent 5319227a8f
commit c7c6249ad7
1 changed files with 8 additions and 1 deletions

View File

@ -28,7 +28,14 @@ export function connect() {
connectionOptions.token, connectionOptions.token,
{ {
...connectionOptions, ...connectionOptions,
bosh: connectionOptions.bosh + (room ? `?room=${room}` : '') bosh:
connectionOptions.bosh
// XXX The Jitsi Meet deployments require the room
// argument to be in lower case at the time of this
// writing but, unfortunately, they do not ignore
// case themselves.
+ (room ? `?room=${room.toLowerCase()}` : '')
}); });
connection.addEventListener( connection.addEventListener(