2017-07-27 23:27:06 +08:00
|
|
|
import Logger from '/imports/startup/server/logger';
|
2017-10-12 10:00:28 +08:00
|
|
|
import Screenshare from '/imports/api/screenshare';
|
2017-07-27 23:27:06 +08:00
|
|
|
|
|
|
|
export default function clearScreenshare(meetingId, screenshareConf) {
|
|
|
|
if (meetingId && screenshareConf) {
|
|
|
|
return Screenshare.remove({ meetingId, 'screenshare.screenshareConf': screenshareConf }, Logger.info(`Cleared Screenshare (${meetingId}) , (${screenshareConf})`));
|
|
|
|
}
|
|
|
|
|
|
|
|
return Screenshare.remove({}, Logger.info('Cleared Screenshare (all)'));
|
|
|
|
}
|