2017-06-28 06:14:53 +08:00
|
|
|
import Auth from '/imports/ui/services/auth';
|
2017-10-12 10:00:28 +08:00
|
|
|
import Users from '/imports/api/users';
|
2017-09-25 23:39:56 +08:00
|
|
|
import { makeCall } from '/imports/ui/services/api';
|
2017-11-24 01:20:27 +08:00
|
|
|
import { EMOJI_STATUSES } from '/imports/utils/statuses';
|
2017-09-25 23:39:56 +08:00
|
|
|
|
2016-12-21 02:06:01 +08:00
|
|
|
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,
|
2016-12-21 02:06:01 +08:00
|
|
|
};
|