浏览代码

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,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
 

正在加载...
取消
保存