bigbluebutton-Github/bigbluebutton-html5/imports/api/voice-users/server/handlers/joinVoiceUser.js

13 lines
291 B
JavaScript
Raw Normal View History

2017-08-01 03:36:41 +08:00
import { check } from 'meteor/check';
import addVoiceUser from '../modifiers/addVoiceUser';
export default function handleJoinVoiceUser({ body }, meetingId) {
const voiceUser = body;
2017-08-02 21:11:53 +08:00
voiceUser.joined = true;
2017-08-01 03:36:41 +08:00
check(meetingId, String);
return addVoiceUser(meetingId, voiceUser);
}