bigbluebutton-Github/bigbluebutton-html5/imports/api/2.0/voice-users/server/handlers/joinVoiceUser.js
2017-08-02 10:11:53 -03:00

13 lines
291 B
JavaScript

import { check } from 'meteor/check';
import addVoiceUser from '../modifiers/addVoiceUser';
export default function handleJoinVoiceUser({ body }, meetingId) {
const voiceUser = body;
voiceUser.joined = true;
check(meetingId, String);
return addVoiceUser(meetingId, voiceUser);
}