2018-08-03 01:23:20 +08:00
|
|
|
import { check } from 'meteor/check';
|
|
|
|
import clearGroupChatMsg from '../modifiers/clearGroupChatMsg';
|
|
|
|
|
2023-03-14 02:28:06 +08:00
|
|
|
export default async function clearPublicChatHistory({ header, body }) {
|
2018-08-03 01:23:20 +08:00
|
|
|
const { meetingId } = header;
|
|
|
|
const { chatId } = body;
|
|
|
|
|
|
|
|
check(meetingId, String);
|
|
|
|
check(chatId, String);
|
|
|
|
|
2023-03-14 02:28:06 +08:00
|
|
|
const result = clearGroupChatMsg(meetingId, chatId);
|
|
|
|
return result;
|
2018-08-03 01:23:20 +08:00
|
|
|
}
|