2020-10-03 01:29:27 +08:00
|
|
|
import { check } from 'meteor/check';
|
2023-03-14 00:59:52 +08:00
|
|
|
import setGuestLobbyMessage from '../modifiers/setGuestLobbyMessage';
|
2020-10-03 01:29:27 +08:00
|
|
|
|
2023-03-14 00:59:52 +08:00
|
|
|
export default async function handleGuestLobbyMessageChanged({ body }, meetingId) {
|
2020-10-03 01:29:27 +08:00
|
|
|
const { message } = body;
|
|
|
|
|
|
|
|
check(meetingId, String);
|
|
|
|
check(message, String);
|
2023-03-14 00:59:52 +08:00
|
|
|
const result = await setGuestLobbyMessage(meetingId, message);
|
|
|
|
return result;
|
2020-10-03 01:29:27 +08:00
|
|
|
}
|