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

13 lines
333 B
JavaScript
Raw Normal View History

import { check } from 'meteor/check';
import clearGroupChatMsg from '../modifiers/clearGroupChatMsg';
export default function clearPublicChatHistory({ header, body }) {
const { meetingId } = header;
const { chatId } = body;
check(meetingId, String);
check(chatId, String);
return clearGroupChatMsg(meetingId, chatId);
}