|
@@ -3,10 +3,7 @@
|
3
|
3
|
import React from 'react';
|
4
|
4
|
import { openDialog } from '../../../base/dialog';
|
5
|
5
|
import { JitsiRecordingConstants } from '../../../base/lib-jitsi-meet';
|
6
|
|
-import {
|
7
|
|
- isLocalParticipantModerator,
|
8
|
|
- getLocalParticipant
|
9
|
|
-} from '../../../base/participants';
|
|
6
|
+import { getLocalParticipant } from '../../../base/participants';
|
10
|
7
|
import { Container, Text } from '../../../base/react';
|
11
|
8
|
import {
|
12
|
9
|
AbstractButton,
|
|
@@ -116,15 +113,13 @@ export function _mapStateToProps(state: Object, ownProps: Props) {
|
116
|
113
|
// If the containing component provides the visible prop, that is one
|
117
|
114
|
// above all, but if not, the button should be autonomus and decide on
|
118
|
115
|
// its own to be visible or not.
|
119
|
|
- const isModerator = isLocalParticipantModerator(state);
|
120
|
116
|
const {
|
121
|
117
|
enableFeaturesBasedOnToken,
|
122
|
118
|
liveStreamingEnabled
|
123
|
119
|
} = state['features/base/config'];
|
124
|
120
|
const { features = {} } = getLocalParticipant(state);
|
125
|
121
|
|
126
|
|
- visible = isModerator
|
127
|
|
- && liveStreamingEnabled
|
|
122
|
+ visible = liveStreamingEnabled
|
128
|
123
|
&& (!enableFeaturesBasedOnToken
|
129
|
124
|
|| String(features.livestreaming) === 'true');
|
130
|
125
|
}
|