bigbluebutton-Github/bigbluebutton-html5/imports/ui/components/presentation/cursor/service.js
Oleksandr Zhurbenko c61dcbce36 Fixed a cursor display/publish for both presenters and viewers
Plus linting warnings, no multi-user yet
2017-07-28 17:29:40 -07:00

16 lines
313 B
JavaScript
Executable File

import Cursor from '/imports/api/2.0/cursor';
import Users from '/imports/api/2.0/users';
const getCurrentCursor = () => {
const user = Users.findOne({ 'user.presenter': true });
if (user) {
return Cursor.findOne({ userId: user.userId });
}
return false;
};
export default {
getCurrentCursor,
};