|
|
|
@ -33,6 +33,7 @@ import { |
|
|
|
import { connect, equals } from '../../../base/redux'; |
|
|
|
import { connect, equals } from '../../../base/redux'; |
|
|
|
import { OverflowMenuItem } from '../../../base/toolbox/components'; |
|
|
|
import { OverflowMenuItem } from '../../../base/toolbox/components'; |
|
|
|
import { getLocalVideoTrack, toggleScreensharing } from '../../../base/tracks'; |
|
|
|
import { getLocalVideoTrack, toggleScreensharing } from '../../../base/tracks'; |
|
|
|
|
|
|
|
import { isVpaasMeeting } from '../../../billing-counter/functions'; |
|
|
|
import { VideoBlurButton } from '../../../blur'; |
|
|
|
import { VideoBlurButton } from '../../../blur'; |
|
|
|
import { CHAT_SIZE, ChatCounter, toggleChat } from '../../../chat'; |
|
|
|
import { CHAT_SIZE, ChatCounter, toggleChat } from '../../../chat'; |
|
|
|
import { EmbedMeetingDialog } from '../../../embed-meeting'; |
|
|
|
import { EmbedMeetingDialog } from '../../../embed-meeting'; |
|
|
|
@ -136,6 +137,11 @@ type Props = { |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
_isGuest: boolean, |
|
|
|
_isGuest: boolean, |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Whether or not the current meeting belongs to a JaaS user. |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
_isVpaasMeeting: boolean, |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* The ID of the local participant. |
|
|
|
* The ID of the local participant. |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
@ -971,6 +977,15 @@ class Toolbox extends Component<Props, State> { |
|
|
|
); |
|
|
|
); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
|
|
* Returns true if the profile button is visible and false otherwise. |
|
|
|
|
|
|
|
* |
|
|
|
|
|
|
|
* @returns {boolean} |
|
|
|
|
|
|
|
*/ |
|
|
|
|
|
|
|
_isEmbedMeetingVisible() { |
|
|
|
|
|
|
|
return !this.props._isVpaasMeeting && this._shouldShowButton('embedmeeting'); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
/** |
|
|
|
* Returns true if the profile button is visible and false otherwise. |
|
|
|
* Returns true if the profile button is visible and false otherwise. |
|
|
|
* |
|
|
|
* |
|
|
|
@ -1047,7 +1062,7 @@ class Toolbox extends Component<Props, State> { |
|
|
|
key = 'stats' |
|
|
|
key = 'stats' |
|
|
|
onClick = { this._onToolbarOpenSpeakerStats } |
|
|
|
onClick = { this._onToolbarOpenSpeakerStats } |
|
|
|
text = { t('toolbar.speakerStats') } />, |
|
|
|
text = { t('toolbar.speakerStats') } />, |
|
|
|
this._shouldShowButton('embedmeeting') |
|
|
|
this._isEmbedMeetingVisible() |
|
|
|
&& <OverflowMenuItem |
|
|
|
&& <OverflowMenuItem |
|
|
|
accessibilityLabel = { t('toolbar.accessibilityLabel.embedMeeting') } |
|
|
|
accessibilityLabel = { t('toolbar.accessibilityLabel.embedMeeting') } |
|
|
|
icon = { IconCodeBlock } |
|
|
|
icon = { IconCodeBlock } |
|
|
|
@ -1433,6 +1448,7 @@ function _mapStateToProps(state) { |
|
|
|
_dialog: Boolean(state['features/base/dialog'].component), |
|
|
|
_dialog: Boolean(state['features/base/dialog'].component), |
|
|
|
_feedbackConfigured: Boolean(callStatsID), |
|
|
|
_feedbackConfigured: Boolean(callStatsID), |
|
|
|
_isGuest: state['features/base/jwt'].isGuest, |
|
|
|
_isGuest: state['features/base/jwt'].isGuest, |
|
|
|
|
|
|
|
_isVpaasMeeting: isVpaasMeeting(state), |
|
|
|
_fullScreen: fullScreen, |
|
|
|
_fullScreen: fullScreen, |
|
|
|
_tileViewEnabled: shouldDisplayTileView(state), |
|
|
|
_tileViewEnabled: shouldDisplayTileView(state), |
|
|
|
_localParticipantID: localParticipant.id, |
|
|
|
_localParticipantID: localParticipant.id, |
|
|
|
|