Skip to content

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

feat: Uses some extra fields to discover name and avatar.

damenchocf1fa524266a
diff --git a/react/features/base/jwt/middleware.ts b/react/features/base/jwt/middleware.ts
index 549f31e71b..d17cb1cca3 100644
--- a/react/features/base/jwt/middleware.ts
+++ b/react/features/base/jwt/middleware.ts
@@ -153,6 +153,12 @@ function _setJWT(store: IStore, next: Function, action: AnyAction) {
_overwriteLocalParticipant(
store, { ...newUser,
features: context.features });
+ } else if (jwtPayload.name || jwtPayload.picture) {
+ // there are some tokens (firebase) having picture and name on the main level.
+ _overwriteLocalParticipant(store, {
+ avatarURL: jwtPayload.picture,
+ name: jwtPayload.name
+ });
}
}
} else if (typeof APP === 'undefined') {