mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2026-05-14 16:07:50 +00:00
feat(rn) add mute everyone / (else) capabilities
This commit is contained in:
@@ -2,17 +2,13 @@
|
||||
|
||||
import React from 'react';
|
||||
|
||||
import { createToolbarEvent, sendAnalytics } from '../../../analytics';
|
||||
import { openDialog } from '../../../base/dialog';
|
||||
import { translate } from '../../../base/i18n';
|
||||
import { IconMuteEveryoneElse } from '../../../base/icons';
|
||||
import { connect } from '../../../base/redux';
|
||||
import AbstractMuteButton, {
|
||||
_mapStateToProps,
|
||||
import AbstractMuteEveryoneElseButton, {
|
||||
type Props
|
||||
} from '../AbstractMuteButton';
|
||||
} from '../AbstractMuteEveryoneElseButton';
|
||||
|
||||
import MuteEveryoneDialog from './MuteEveryoneDialog';
|
||||
import RemoteVideoMenuButton from './RemoteVideoMenuButton';
|
||||
|
||||
/**
|
||||
@@ -20,9 +16,9 @@ import RemoteVideoMenuButton from './RemoteVideoMenuButton';
|
||||
* every participant in the conference except the one with the given
|
||||
* participantID
|
||||
*/
|
||||
class MuteEveryoneElseButton extends AbstractMuteButton {
|
||||
class MuteEveryoneElseButton extends AbstractMuteEveryoneElseButton {
|
||||
/**
|
||||
* Instantiates a new {@code MuteEveryoneElseButton}.
|
||||
* Instantiates a new {@code Component}.
|
||||
*
|
||||
* @inheritdoc
|
||||
*/
|
||||
@@ -53,19 +49,6 @@ class MuteEveryoneElseButton extends AbstractMuteButton {
|
||||
}
|
||||
|
||||
_handleClick: () => void;
|
||||
|
||||
/**
|
||||
* Handles clicking / pressing the button, and opens a confirmation dialog.
|
||||
*
|
||||
* @private
|
||||
* @returns {void}
|
||||
*/
|
||||
_handleClick() {
|
||||
const { dispatch, participantID } = this.props;
|
||||
|
||||
sendAnalytics(createToolbarEvent('mute.everyoneelse.pressed'));
|
||||
dispatch(openDialog(MuteEveryoneDialog, { exclude: [ participantID ] }));
|
||||
}
|
||||
}
|
||||
|
||||
export default translate(connect(_mapStateToProps)(MuteEveryoneElseButton));
|
||||
export default translate(connect()(MuteEveryoneElseButton));
|
||||
|
||||
Reference in New Issue
Block a user