Selaa lähdekoodia

fix(jaas) fix recorder and sip gateways not detecting vpaas meetings

j8
Tudor-Ovidiu Avram 4 vuotta sitten
vanhempi
commit
c6fd8c2bcb
1 muutettua tiedostoa jossa 7 lisäystä ja 2 poistoa
  1. 7
    2
      react/features/billing-counter/functions.js

+ 7
- 2
react/features/billing-counter/functions.js Näytä tiedosto

@@ -29,11 +29,16 @@ export function extractVpaasTenantFromPath(path: string) {
29 29
  * @returns {boolean}
30 30
  */
31 31
 export function isVpaasMeeting(state: Object) {
32
+    const { billingCounterUrl, iAmRecorder, iAmSipGateway } = state['features/base/config'];
33
+    const { jwt } = state['features/base/jwt'];
34
+
35
+    const isAllowed = iAmRecorder || iAmSipGateway || Boolean(jwt);
36
+
32 37
     return Boolean(
33
-        state['features/base/config'].billingCounterUrl
34
-        && state['features/base/jwt'].jwt
38
+        billingCounterUrl
35 39
         && extractVpaasTenantFromPath(
36 40
             state['features/base/connection'].locationURL.pathname)
41
+        && isAllowed
37 42
     );
38 43
 }
39 44
 

Loading…
Peruuta
Tallenna