浏览代码

Enables live-streaming for guests. (#3274)

j8
Дамян Минков 6 年前
父节点
当前提交
cd1c384cc8
共有 1 个文件被更改,包括 2 次插入7 次删除
  1. 2
    7
      react/features/recording/components/LiveStream/AbstractLiveStreamButton.js

+ 2
- 7
react/features/recording/components/LiveStream/AbstractLiveStreamButton.js 查看文件

@@ -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
     }

正在加载...
取消
保存