Bläddra i källkod

[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.
master
Lyubomir Marinov 8 år sedan
förälder
incheckning
c7c6249ad7
1 ändrade filer med 8 tillägg och 1 borttagningar
  1. 8
    1
      react/features/base/connection/actions.native.js

+ 8
- 1
react/features/base/connection/actions.native.js Visa fil

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

Laddar…
Avbryt
Spara