瀏覽代碼

Enables live-streaming for guests. (#3274)

master
Дамян Минков 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
 import React from 'react';
3
 import React from 'react';
4
 import { openDialog } from '../../../base/dialog';
4
 import { openDialog } from '../../../base/dialog';
5
 import { JitsiRecordingConstants } from '../../../base/lib-jitsi-meet';
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
 import { Container, Text } from '../../../base/react';
7
 import { Container, Text } from '../../../base/react';
11
 import {
8
 import {
12
     AbstractButton,
9
     AbstractButton,
116
         // If the containing component provides the visible prop, that is one
113
         // If the containing component provides the visible prop, that is one
117
         // above all, but if not, the button should be autonomus and decide on
114
         // above all, but if not, the button should be autonomus and decide on
118
         // its own to be visible or not.
115
         // its own to be visible or not.
119
-        const isModerator = isLocalParticipantModerator(state);
120
         const {
116
         const {
121
             enableFeaturesBasedOnToken,
117
             enableFeaturesBasedOnToken,
122
             liveStreamingEnabled
118
             liveStreamingEnabled
123
         } = state['features/base/config'];
119
         } = state['features/base/config'];
124
         const { features = {} } = getLocalParticipant(state);
120
         const { features = {} } = getLocalParticipant(state);
125
 
121
 
126
-        visible = isModerator
127
-            && liveStreamingEnabled
122
+        visible = liveStreamingEnabled
128
             && (!enableFeaturesBasedOnToken
123
             && (!enableFeaturesBasedOnToken
129
                 || String(features.livestreaming) === 'true');
124
                 || String(features.livestreaming) === 'true');
130
     }
125
     }

Loading…
取消
儲存