bigbluebutton-Github/bigbluebutton-html5/imports/api/2.0/chat/server/handlers/chatMessage.js
2017-07-11 13:57:54 -03:00

12 lines
272 B
JavaScript

import { check } from 'meteor/check';
import addChat from '../modifiers/addChat';
export default function handleChatMessage({ body }, meetingId) {
const { message } = body;
check(meetingId, String);
check(message, Object);
return addChat(meetingId, message);
}