bigbluebutton-Github/bigbluebutton-html5/imports/api/voice-users/server/handlers/mutedVoiceUser.js
2019-08-09 15:39:55 -07:00

17 lines
395 B
JavaScript
Executable File

import { check } from 'meteor/check';
import updateVoiceUser from '../modifiers/updateVoiceUser';
export default function handleVoiceUpdate({ body }, meetingId) {
const voiceUser = body;
check(meetingId, String);
// If a person is muted we have to force them to not talking
if (voiceUser.muted) {
voiceUser.talking = false;
}
return updateVoiceUser(meetingId, voiceUser);
}