parent
e72dae5c32
commit
701d34248b
|
@ -1,6 +1,7 @@
|
||||||
// @flow
|
// @flow
|
||||||
|
|
||||||
import { createToolbarEvent, sendAnalytics } from '../../analytics';
|
import { createToolbarEvent, sendAnalytics } from '../../analytics';
|
||||||
|
import { isLocalParticipantModerator } from '../../base/participants';
|
||||||
import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox';
|
import { AbstractButton, type AbstractButtonProps } from '../../base/toolbox';
|
||||||
import { toggleRequestingSubtitles } from '../actions';
|
import { toggleRequestingSubtitles } from '../actions';
|
||||||
|
|
||||||
|
@ -83,9 +84,8 @@ export class AbstractClosedCaptionButton
|
||||||
*/
|
*/
|
||||||
export function _abstractMapStateToProps(state: Object, ownProps: Object) {
|
export function _abstractMapStateToProps(state: Object, ownProps: Object) {
|
||||||
const { _requestingSubtitles } = state['features/subtitles'];
|
const { _requestingSubtitles } = state['features/subtitles'];
|
||||||
const { isGuest = true } = state['features/base/jwt'];
|
|
||||||
const { transcribingEnabled } = state['features/base/config'];
|
const { transcribingEnabled } = state['features/base/config'];
|
||||||
const { visible = Boolean(transcribingEnabled && !isGuest) } = ownProps;
|
const { visible = Boolean(transcribingEnabled && isLocalParticipantModerator(state)) } = ownProps;
|
||||||
|
|
||||||
return {
|
return {
|
||||||
_requestingSubtitles,
|
_requestingSubtitles,
|
||||||
|
|
Loading…
Reference in New Issue