From cd1c384cc8acda65f9a83945fb737d253a742e78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=94=D0=B0=D0=BC=D1=8F=D0=BD=20=D0=9C=D0=B8=D0=BD=D0=BA?= =?UTF-8?q?=D0=BE=D0=B2?= Date: Wed, 18 Jul 2018 20:11:54 -0500 Subject: [PATCH] Enables live-streaming for guests. (#3274) --- .../components/LiveStream/AbstractLiveStreamButton.js | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/react/features/recording/components/LiveStream/AbstractLiveStreamButton.js b/react/features/recording/components/LiveStream/AbstractLiveStreamButton.js index 9b43bd814..24d33f12b 100644 --- a/react/features/recording/components/LiveStream/AbstractLiveStreamButton.js +++ b/react/features/recording/components/LiveStream/AbstractLiveStreamButton.js @@ -3,10 +3,7 @@ import React from 'react'; import { openDialog } from '../../../base/dialog'; import { JitsiRecordingConstants } from '../../../base/lib-jitsi-meet'; -import { - isLocalParticipantModerator, - getLocalParticipant -} from '../../../base/participants'; +import { getLocalParticipant } from '../../../base/participants'; import { Container, Text } from '../../../base/react'; import { AbstractButton, @@ -116,15 +113,13 @@ export function _mapStateToProps(state: Object, ownProps: Props) { // If the containing component provides the visible prop, that is one // above all, but if not, the button should be autonomus and decide on // its own to be visible or not. - const isModerator = isLocalParticipantModerator(state); const { enableFeaturesBasedOnToken, liveStreamingEnabled } = state['features/base/config']; const { features = {} } = getLocalParticipant(state); - visible = isModerator - && liveStreamingEnabled + visible = liveStreamingEnabled && (!enableFeaturesBasedOnToken || String(features.livestreaming) === 'true'); }