bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/lock-viewers/service.js
2019-06-12 15:03:23 -03:00

15 lines
499 B
JavaScript

import { makeCall } from '/imports/ui/services/api';
import Meetings from '/imports/api/meetings';
import Auth from '/imports/ui/services/auth';
const getCurrentMeeting = () => Meetings.findOne({ meetingId: Auth.meetingID });
const toggleLockSettings = () => makeCall('toggleLockSettings', getCurrentMeeting());
const toggleWebcamsOnlyForModerator = () => makeCall('toggleWebcamsOnlyForModerator', getCurrentMeeting());
export default {
toggleLockSettings,
toggleWebcamsOnlyForModerator,
};