who-is-talking - do not allow mute in breakouts

This commit is contained in:
Anton Georgiev 2020-11-19 14:12:05 -05:00
parent a947977c66
commit dedaea5ad2
2 changed files with 5 additions and 2 deletions

View File

@ -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);
}

View File

@ -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);