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);
|
|
|
|
}
|