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 context.features to work without context.user. Fixes #12005

damencho41a6cbd3fcf9
diff --git a/react/features/base/jwt/middleware.js b/react/features/base/jwt/middleware.js
index 4f45e28ae1..2cc662511d 100644
--- a/react/features/base/jwt/middleware.js
+++ b/react/features/base/jwt/middleware.js
@@ -150,8 +150,10 @@ function _setJWT(store, next, action) {
action.tenant = context.tenant || sub || undefined;
action.user = user;
- user && _overwriteLocalParticipant(
- store, { ...user,
+ const newUser = user ? { ...user } : {};
+
+ _overwriteLocalParticipant(
+ store, { ...newUser,
features: context.features });
}
}