Skip to content

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

fix(jwt): Fix tenant matching for features when tenant is missing.

Дамян Минков8745f07052db
diff --git a/react/features/base/jwt/middleware.ts b/react/features/base/jwt/middleware.ts
index c128daba56..4bad35069c 100644
--- a/react/features/base/jwt/middleware.ts
+++ b/react/features/base/jwt/middleware.ts
@@ -164,7 +164,7 @@ function _setJWT(store: IStore, next: Function, action: AnyAction) {
const { locationURL = { href: '' } as URL } = state['features/base/connection'];
const { tenant = '' } = parseURIString(locationURL.href) || {};
- features = context.tenant === tenant ? features : {};
+ features = context.tenant === tenant || tenant === '' ? features : {};
}
_overwriteLocalParticipant(