20 lines
435 B
JavaScript
20 lines
435 B
JavaScript
|
import { Meteor } from 'meteor/meteor';
|
||
|
|
||
|
const GroupChat = new Mongo.Collection('group-chat-msg');
|
||
|
|
||
|
if (Meteor.isServer) {
|
||
|
GroupChat._ensureIndex({
|
||
|
meetingId: 1, chatId: 1, access: 1, users: 1,
|
||
|
});
|
||
|
}
|
||
|
|
||
|
export default GroupChat;
|
||
|
|
||
|
export const CHAT_ACCESS = {
|
||
|
PUBLIC: 'PUBLIC_ACCESS',
|
||
|
PRIVATE: 'PRIVATE_ACCESS',
|
||
|
};
|
||
|
|
||
|
export const CHAT_ACCESS_PUBLIC = CHAT_ACCESS.PUBLIC;
|
||
|
export const CHAT_ACCESS_PRIVATE = CHAT_ACCESS.PRIVATE;
|