mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-14 18:17:47 +00:00
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:
@@ -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)
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user