bigbluebutton-Github/bigbluebutton-html5/imports/api/group-chat-msg/server/handlers/syncGroupsChat.js

13 lines
354 B
JavaScript

import { Match, check } from 'meteor/check';
import syncMeetingChatMsgs from '../modifiers/syncMeetingChatMsgs';
export default function handleSyncGroupChat({ body }, meetingId) {
const { chatId, msgs } = body;
check(meetingId, String);
check(chatId, String);
check(msgs, Match.Maybe(Array));
syncMeetingChatMsgs(meetingId, chatId, msgs);
}