|
@@ -33,6 +33,7 @@ import {
|
33
|
33
|
import { connect, equals } from '../../../base/redux';
|
34
|
34
|
import { OverflowMenuItem } from '../../../base/toolbox/components';
|
35
|
35
|
import { getLocalVideoTrack, toggleScreensharing } from '../../../base/tracks';
|
|
36
|
+import { isVpaasMeeting } from '../../../billing-counter/functions';
|
36
|
37
|
import { VideoBlurButton } from '../../../blur';
|
37
|
38
|
import { CHAT_SIZE, ChatCounter, toggleChat } from '../../../chat';
|
38
|
39
|
import { EmbedMeetingDialog } from '../../../embed-meeting';
|
|
@@ -136,6 +137,11 @@ type Props = {
|
136
|
137
|
*/
|
137
|
138
|
_isGuest: boolean,
|
138
|
139
|
|
|
140
|
+ /**
|
|
141
|
+ * Whether or not the current meeting belongs to a JaaS user.
|
|
142
|
+ */
|
|
143
|
+ _isVpaasMeeting: boolean,
|
|
144
|
+
|
139
|
145
|
/**
|
140
|
146
|
* The ID of the local participant.
|
141
|
147
|
*/
|
|
@@ -971,6 +977,15 @@ class Toolbox extends Component<Props, State> {
|
971
|
977
|
);
|
972
|
978
|
}
|
973
|
979
|
|
|
980
|
+ /**
|
|
981
|
+ * Returns true if the profile button is visible and false otherwise.
|
|
982
|
+ *
|
|
983
|
+ * @returns {boolean}
|
|
984
|
+ */
|
|
985
|
+ _isEmbedMeetingVisible() {
|
|
986
|
+ return !this.props._isVpaasMeeting && this._shouldShowButton('embedmeeting');
|
|
987
|
+ }
|
|
988
|
+
|
974
|
989
|
/**
|
975
|
990
|
* Returns true if the profile button is visible and false otherwise.
|
976
|
991
|
*
|
|
@@ -1047,7 +1062,7 @@ class Toolbox extends Component<Props, State> {
|
1047
|
1062
|
key = 'stats'
|
1048
|
1063
|
onClick = { this._onToolbarOpenSpeakerStats }
|
1049
|
1064
|
text = { t('toolbar.speakerStats') } />,
|
1050
|
|
- this._shouldShowButton('embedmeeting')
|
|
1065
|
+ this._isEmbedMeetingVisible()
|
1051
|
1066
|
&& <OverflowMenuItem
|
1052
|
1067
|
accessibilityLabel = { t('toolbar.accessibilityLabel.embedMeeting') }
|
1053
|
1068
|
icon = { IconCodeBlock }
|
|
@@ -1433,6 +1448,7 @@ function _mapStateToProps(state) {
|
1433
|
1448
|
_dialog: Boolean(state['features/base/dialog'].component),
|
1434
|
1449
|
_feedbackConfigured: Boolean(callStatsID),
|
1435
|
1450
|
_isGuest: state['features/base/jwt'].isGuest,
|
|
1451
|
+ _isVpaasMeeting: isVpaasMeeting(state),
|
1436
|
1452
|
_fullScreen: fullScreen,
|
1437
|
1453
|
_tileViewEnabled: shouldDisplayTileView(state),
|
1438
|
1454
|
_localParticipantID: localParticipant.id,
|