From e649ae90161cd173122866e7ad39d087a52b7012 Mon Sep 17 00:00:00 2001 From: Leonard Kim Date: Mon, 14 May 2018 09:22:38 -0700 Subject: [PATCH] fix(toolbar): show profile button if guest If authenticated using JWT, don't show the profile button but do show it if a guest. --- react/features/toolbox/components/Toolbox.web.js | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/react/features/toolbox/components/Toolbox.web.js b/react/features/toolbox/components/Toolbox.web.js index 56241e85b..6271ad4b7 100644 --- a/react/features/toolbox/components/Toolbox.web.js +++ b/react/features/toolbox/components/Toolbox.web.js @@ -99,6 +99,11 @@ type Props = { */ _hideInviteButton: boolean, + /** + * Whether or not the current user is logged in through a JWT. + */ + _isGuest: boolean, + /** * Whether or not the conference is currently being recorded by the local * participant. @@ -942,12 +947,14 @@ class Toolbox extends Component { _etherpadInitialized, _feedbackConfigured, _fullScreen, + _isGuest, _sharingVideo, t } = this.props; return [ - this._shouldShowButton('profile') + _isGuest + && this._shouldShowButton('profile') && , @@ -1121,6 +1128,7 @@ function _mapStateToProps(state) { _feedbackConfigured: Boolean(callStatsID), _hideInviteButton: iAmRecorder || (!addPeopleEnabled && !dialOutEnabled), + _isGuest: state['features/base/jwt'].isGuest, _isRecording: isRecording, _fullScreen: fullScreen, _localParticipantID: localParticipant.id,