diff --git a/react/features/base/jwt/middleware.js b/react/features/base/jwt/middleware.js index 4f45e28ae..2cc662511 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 }); } }