fix(av-moderation) Fix text on stop video dialog

Show correct text on stop participant's video dialog when moderation is on
This commit is contained in:
robertpin
2021-11-03 12:38:12 +02:00
parent c4cbf83208
commit 21d5b7bcd6
4 changed files with 38 additions and 10 deletions

View File

@@ -3,6 +3,7 @@
import { Component } from 'react';
import { rejectParticipantVideo } from '../../av-moderation/actions';
import { isEnabledFromState } from '../../av-moderation/functions';
import { MEDIA_TYPE } from '../../base/media';
import { muteRemote } from '../actions';
@@ -17,6 +18,11 @@ export type Props = {
*/
dispatch: Function,
/**
* Whether or not video moderation is on.
*/
isVideoModerationOn: boolean,
/**
* The ID of the remote participant to be muted.
*/
@@ -65,3 +71,17 @@ export default class AbstractMuteRemoteParticipantsVideoDialog<P:Props = Props,
return true;
}
}
/**
* Maps (parts of) the redux state to the associated
* {@code AbstractDialogContainer}'s props.
*
* @param {Object} state - The redux state.
* @private
* @returns {Object}
*/
export function abstractMapStateToProps(state: Object) {
return {
isVideoModerationOn: isEnabledFromState(MEDIA_TYPE.VIDEO, state)
};
}