bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/lock-viewers/service.js

15 lines
499 B
JavaScript
Raw Normal View History

2019-06-13 02:03:23 +08:00
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,
};