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

14 lines
364 B
JavaScript

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