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 {
|
class TalkingIndicator extends PureComponent {
|
||||||
handleMuteUser(id) {
|
handleMuteUser(id) {
|
||||||
const { muteUser, amIModerator } = this.props;
|
const { muteUser, amIModerator, isBreakoutRoom } = this.props;
|
||||||
if (!amIModerator) return;
|
// only allow moderator muting anyone in non-breakout
|
||||||
|
if (!amIModerator || isBreakoutRoom) return;
|
||||||
muteUser(id);
|
muteUser(id);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -6,6 +6,7 @@ import Auth from '/imports/ui/services/auth';
|
|||||||
import { debounce } from 'lodash';
|
import { debounce } from 'lodash';
|
||||||
import TalkingIndicator from './component';
|
import TalkingIndicator from './component';
|
||||||
import { makeCall } from '/imports/ui/services/api';
|
import { makeCall } from '/imports/ui/services/api';
|
||||||
|
import { meetingIsBreakout } from '/imports/ui/components/app/service';
|
||||||
import Service from './service';
|
import Service from './service';
|
||||||
|
|
||||||
const APP_CONFIG = Meteor.settings.public.app;
|
const APP_CONFIG = Meteor.settings.public.app;
|
||||||
@ -65,5 +66,6 @@ export default withTracker(() => {
|
|||||||
talkers,
|
talkers,
|
||||||
muteUser: id => debounce(muteUser(id), 500, { leading: true, trailing: false }),
|
muteUser: id => debounce(muteUser(id), 500, { leading: true, trailing: false }),
|
||||||
openPanel: Session.get('openPanel'),
|
openPanel: Session.get('openPanel'),
|
||||||
|
isBreakoutRoom: meetingIsBreakout(),
|
||||||
};
|
};
|
||||||
})(TalkingIndicatorContainer);
|
})(TalkingIndicatorContainer);
|
||||||
|
Loading…
Reference in New Issue
Block a user