bigbluebutton-Github/bigbluebutton-html5/imports/api/users/server/methods.js

18 lines
560 B
JavaScript
Raw Normal View History

import { Meteor } from 'meteor/meteor';
import kickUser from './methods/kickUser';
2017-02-10 20:24:14 +08:00
import listenOnlyToggle from './methods/listenOnlyToggle';
import userLogout from './methods/userLogout';
2017-02-22 20:56:32 +08:00
import assignPresenter from './methods/assignPresenter';
2017-02-22 21:11:47 +08:00
import muteToggle from './methods/muteToggle';
import setEmojiStatus from './methods/setEmojiStatus';
Meteor.methods({
kickUser,
2017-02-10 20:24:14 +08:00
listenOnlyToggle,
userLogout,
2017-02-22 21:11:47 +08:00
assignPresenter,
setEmojiStatus,
muteUser: (...args) => muteToggle(...args, true),
unmuteUser: (...args) => muteToggle(...args, false),
});