Fixed (#9533)
This commit is contained in:
parent
601ee219e7
commit
7d3953de51
|
@ -90,7 +90,7 @@ export async function connect(id, password, roomName) {
|
|||
const state = APP.store.getState();
|
||||
let { jwt } = state['features/base/jwt'];
|
||||
|
||||
if (!jwt && isVpaasMeeting(state)) {
|
||||
if (!jwt && isVpaasMeeting(state, false)) {
|
||||
jwt = await getJaasJWT(state);
|
||||
APP.store.dispatch(setJWT(jwt));
|
||||
}
|
||||
|
|
|
@ -36,13 +36,16 @@ export function getVpaasTenant(state: Object) {
|
|||
* Returns true if the current meeting is a vpaas one.
|
||||
*
|
||||
* @param {Object} state - The state of the app.
|
||||
* @param {boolean} requiredJwt - Whether jwt is required or not.
|
||||
* @returns {boolean}
|
||||
*/
|
||||
export function isVpaasMeeting(state: Object) {
|
||||
export function isVpaasMeeting(state: Object, requiredJwt: boolean = true) {
|
||||
const { billingCounterUrl, iAmRecorder, iAmSipGateway } = state['features/base/config'];
|
||||
const { jwt } = state['features/base/jwt'];
|
||||
|
||||
const isAllowed = iAmRecorder || iAmSipGateway || Boolean(jwt);
|
||||
const jwtBoolean = requiredJwt ? Boolean(jwt) : true;
|
||||
|
||||
const isAllowed = iAmRecorder || iAmSipGateway || jwtBoolean;
|
||||
|
||||
return Boolean(
|
||||
billingCounterUrl
|
||||
|
|
Loading…
Reference in New Issue