2020-11-30 22:27:26 +08:00
|
|
|
import { Match, check } from 'meteor/check';
|
2020-12-09 21:33:01 +08:00
|
|
|
import syncMeetingChatMsgs from '../modifiers/syncMeetingChatMsgs';
|
2020-11-30 22:27:26 +08:00
|
|
|
|
|
|
|
export default function handleSyncGroupChat({ body }, meetingId) {
|
|
|
|
const { chatId, msgs } = body;
|
|
|
|
|
|
|
|
check(meetingId, String);
|
|
|
|
check(chatId, String);
|
|
|
|
check(msgs, Match.Maybe(Array));
|
|
|
|
|
2020-12-09 21:33:01 +08:00
|
|
|
syncMeetingChatMsgs(meetingId, chatId, msgs);
|
2020-11-30 22:27:26 +08:00
|
|
|
}
|