瀏覽代碼

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

j8
Tudor-Ovidiu Avram 4 年之前
父節點
當前提交
c6fd8c2bcb
共有 1 個檔案被更改,包括 7 行新增2 行删除
  1. 7
    2
      react/features/billing-counter/functions.js

+ 7
- 2
react/features/billing-counter/functions.js 查看文件

29
  * @returns {boolean}
29
  * @returns {boolean}
30
  */
30
  */
31
 export function isVpaasMeeting(state: Object) {
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
     return Boolean(
37
     return Boolean(
33
-        state['features/base/config'].billingCounterUrl
34
-        && state['features/base/jwt'].jwt
38
+        billingCounterUrl
35
         && extractVpaasTenantFromPath(
39
         && extractVpaasTenantFromPath(
36
             state['features/base/connection'].locationURL.pathname)
40
             state['features/base/connection'].locationURL.pathname)
41
+        && isAllowed
37
     );
42
     );
38
 }
43
 }
39
 
44
 

Loading…
取消
儲存