Merge pull request #10870 from antobinary/breakouts-who-is-talking-mute
Breakouts: do not allow mute via who-is-talking button
This commit is contained in:
commit
a310a59257
@ -1 +1,2 @@
|
|||||||
BIGBLUEBUTTON_RELEASE=2.2.29
|
BIGBLUEBUTTON_RELEASE=2.2.30
|
||||||
|
|
||||||
|
@ -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