Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Fixed (#9533)

robertpin7d3953de513f
diff --git a/connection.js b/connection.js
index 095edf1e20..35d80c1a6b 100644
--- a/connection.js
+++ b/connection.js
@@ -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));
}
diff --git a/react/features/billing-counter/functions.js b/react/features/billing-counter/functions.js
index 54dcb83696..dd9d55826b 100644
--- a/react/features/billing-counter/functions.js
+++ b/react/features/billing-counter/functions.js
@@ -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