27 lines
561 B
JavaScript
27 lines
561 B
JavaScript
import WhiteboardMultiUser from '/imports/api/2.0/whiteboard-multi-user/';
|
|
|
|
export const indexOf = [].indexOf || function (item) {
|
|
for (let i = 0, l = this.length; i < l; i += 1) {
|
|
if (i in this && this[i] === item) {
|
|
return i;
|
|
}
|
|
}
|
|
|
|
return -1;
|
|
};
|
|
|
|
// used in 1.1
|
|
export const inReplyToHTML5Client = function (arg) {
|
|
return arg.routing.userId === 'nodeJSapp';
|
|
};
|
|
|
|
export const getMultiUserStatus = (meetingId) => {
|
|
const data = WhiteboardMultiUser.findOne({ meetingId });
|
|
|
|
if (data) {
|
|
return data.multiUser;
|
|
}
|
|
|
|
return false;
|
|
};
|