bigbluebutton-Github/bigbluebutton-html5/imports/api/2.0/chat/server/handlers/chatMessage.js

12 lines
272 B
JavaScript
Raw Normal View History

2017-07-12 00:57:54 +08:00
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);
}