Sfoglia il codice sorgente

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

j8
Tudor-Ovidiu Avram 4 anni fa
parent
commit
c6fd8c2bcb
1 ha cambiato i file con 7 aggiunte e 2 eliminazioni
  1. 7
    2
      react/features/billing-counter/functions.js

+ 7
- 2
react/features/billing-counter/functions.js Vedi File

@@ -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…
Annulla
Salva