mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
feat: Profile tab does not depend on isGuest.
Introduced a config property to disable profile.
This commit is contained in:
@@ -1,7 +1,5 @@
|
||||
/* @flow */
|
||||
|
||||
import jwtDecode from 'jwt-decode';
|
||||
|
||||
import { parseURLParams } from '../util';
|
||||
|
||||
/**
|
||||
@@ -24,7 +22,7 @@ export function parseJWTFromURLParams(url: URL = window.location) {
|
||||
* @returns {string}
|
||||
*/
|
||||
export function getJwtName(state: Object) {
|
||||
const jwtData = jwtDecode(state['features/base/jwt'].jwt);
|
||||
const { user } = state['features/base/jwt'];
|
||||
|
||||
return jwtData?.context?.user?.name || '';
|
||||
return user?.name || '';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user