|
@@ -36,22 +36,15 @@ export function getVpaasTenant(state: Object) {
|
36
|
36
|
* Returns true if the current meeting is a vpaas one.
|
37
|
37
|
*
|
38
|
38
|
* @param {Object} state - The state of the app.
|
39
|
|
- * @param {boolean} requiredJwt - Whether jwt is required or not.
|
40
|
39
|
* @returns {boolean}
|
41
|
40
|
*/
|
42
|
|
-export function isVpaasMeeting(state: Object, requiredJwt: boolean = true) {
|
43
|
|
- const { billingCounterUrl, iAmRecorder, iAmSipGateway } = state['features/base/config'];
|
44
|
|
- const { jwt } = state['features/base/jwt'];
|
45
|
|
-
|
46
|
|
- const jwtBoolean = requiredJwt ? Boolean(jwt) : true;
|
47
|
|
-
|
48
|
|
- const isAllowed = iAmRecorder || iAmSipGateway || jwtBoolean;
|
|
41
|
+export function isVpaasMeeting(state: Object) {
|
|
42
|
+ const { billingCounterUrl } = state['features/base/config'];
|
49
|
43
|
|
50
|
44
|
return Boolean(
|
51
|
45
|
billingCounterUrl
|
52
|
46
|
&& extractVpaasTenantFromPath(
|
53
|
47
|
state['features/base/connection'].locationURL.pathname)
|
54
|
|
- && isAllowed
|
55
|
48
|
);
|
56
|
49
|
}
|
57
|
50
|
|