2019-02-22 05:09:44 +08:00
|
|
|
import { check } from 'meteor/check';
|
|
|
|
import userInactivityInspect from '../modifiers/userInactivityInspect';
|
|
|
|
|
|
|
|
export default function handleUserInactivityInspect({ header, body }, meetingId) {
|
|
|
|
const { userId } = header;
|
|
|
|
const { responseDelay } = body;
|
|
|
|
|
|
|
|
check(userId, String);
|
|
|
|
check(responseDelay, Match.Integer);
|
|
|
|
check(meetingId, String);
|
|
|
|
|
|
|
|
|
2020-11-23 21:13:46 +08:00
|
|
|
userInactivityInspect(userId, responseDelay);
|
2019-02-22 05:09:44 +08:00
|
|
|
}
|