bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/actions-bar/service.js

16 lines
729 B
JavaScript
Raw Normal View History

import Auth from '/imports/ui/services/auth';
import Users from '/imports/api/users';
import { makeCall } from '/imports/ui/services/api';
2017-11-24 01:20:27 +08:00
import { EMOJI_STATUSES } from '/imports/utils/statuses';
2018-02-16 03:42:50 +08:00
import Meetings from '/imports/api/meetings';
export default {
2017-11-24 01:20:27 +08:00
isUserPresenter: () => Users.findOne({ userId: Auth.userID }).presenter,
getEmoji: () => Users.findOne({ userId: Auth.userID }).emoji,
setEmoji: status => makeCall('setEmojiStatus', Auth.userID, status),
getEmojiList: () => EMOJI_STATUSES,
2018-02-16 03:42:50 +08:00
isUserModerator: () => Users.findOne({ userId: Auth.userID }).moderator,
2018-02-28 22:10:00 +08:00
recordSettingsList: () => Meetings.findOne({ meetingId: Auth.meetingID }).recordProp,
toggleRecording: () => makeCall('toggleRecording'),
};