2018-03-10 02:42:14 +08:00
|
|
|
import { check } from 'meteor/check';
|
|
|
|
import addGroupChatMsg from '../modifiers/addGroupChatMsg';
|
|
|
|
|
|
|
|
export default function handleGroupChatMsgBroadcast({ body }, meetingId) {
|
|
|
|
const { chatId, msg } = body;
|
|
|
|
|
|
|
|
check(meetingId, String);
|
|
|
|
check(chatId, String);
|
|
|
|
check(msg, Object);
|
|
|
|
|
2020-11-19 05:09:38 +08:00
|
|
|
addGroupChatMsg(meetingId, chatId, msg);
|
2018-03-10 02:42:14 +08:00
|
|
|
}
|