2022-01-12 22:10:30 +08:00
|
|
|
import { check } from 'meteor/check';
|
|
|
|
import setPrivateGuestLobbyMessage from '../modifiers/setPrivateGuestLobbyMessage';
|
|
|
|
|
2023-03-09 01:35:40 +08:00
|
|
|
export default async function handlePrivateGuestLobbyMessageChanged({ body }, meetingId) {
|
|
|
|
const { guestId, message } = body;
|
2022-01-12 22:10:30 +08:00
|
|
|
|
|
|
|
check(meetingId, String);
|
2023-03-09 01:35:40 +08:00
|
|
|
check(guestId, String);
|
2022-01-12 22:10:30 +08:00
|
|
|
check(message, String);
|
|
|
|
|
2023-03-09 01:35:40 +08:00
|
|
|
const result = await setPrivateGuestLobbyMessage(meetingId, guestId, message);
|
|
|
|
return result;
|
2022-01-12 22:10:30 +08:00
|
|
|
}
|