fix(toolbar): show profile button if guest

If authenticated using JWT, don't show the profile button but
do show it if a guest.
pull/2976/head jitsi-meet_3040
Leonard Kim 7 years ago committed by Дамян Минков
parent 39ba83131b
commit e649ae9016
  1. 10
      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<Props, State> {
_etherpadInitialized,
_feedbackConfigured,
_fullScreen,
_isGuest,
_sharingVideo,
t
} = this.props;
return [
this._shouldShowButton('profile')
_isGuest
&& this._shouldShowButton('profile')
&& <OverflowMenuProfileItem
key = 'profile'
onClick = { this._onToolbarToggleProfile } />,
@ -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,

Loading…
Cancel
Save