who-is-talking - do not allow mute in breakouts
This commit is contained in:
parent
a947977c66
commit
dedaea5ad2
@ -22,8 +22,9 @@ const intlMessages = defineMessages({
|
||||
|
||||
class TalkingIndicator extends PureComponent {
|
||||
handleMuteUser(id) {
|
||||
const { muteUser, amIModerator } = this.props;
|
||||
if (!amIModerator) return;
|
||||
const { muteUser, amIModerator, isBreakoutRoom } = this.props;
|
||||
// only allow moderator muting anyone in non-breakout
|
||||
if (!amIModerator || isBreakoutRoom) return;
|
||||
muteUser(id);
|
||||
}
|
||||
|
||||
|
@ -6,6 +6,7 @@ import Auth from '/imports/ui/services/auth';
|
||||
import { debounce } from 'lodash';
|
||||
import TalkingIndicator from './component';
|
||||
import { makeCall } from '/imports/ui/services/api';
|
||||
import { meetingIsBreakout } from '/imports/ui/components/app/service';
|
||||
import Service from './service';
|
||||
|
||||
const APP_CONFIG = Meteor.settings.public.app;
|
||||
@ -65,5 +66,6 @@ export default withTracker(() => {
|
||||
talkers,
|
||||
muteUser: id => debounce(muteUser(id), 500, { leading: true, trailing: false }),
|
||||
openPanel: Session.get('openPanel'),
|
||||
isBreakoutRoom: meetingIsBreakout(),
|
||||
};
|
||||
})(TalkingIndicatorContainer);
|
||||
|
Loading…
Reference in New Issue
Block a user