bigbluebutton-Github/bigbluebutton-html5/imports/api/group-chat-msg/index.js

12 lines
344 B
JavaScript
Raw Normal View History

import { Meteor } from 'meteor/meteor';
const GroupChatMsg = new Mongo.Collection('group-chat-msg');
2019-08-03 02:18:33 +08:00
const UsersTyping = new Mongo.Collection('users-typing');
if (Meteor.isServer) {
GroupChatMsg._ensureIndex({ meetingId: 1, chatId: 1 });
2019-08-15 02:39:15 +08:00
UsersTyping._ensureIndex({ meetingId: 1, isTypingTo: 1 });
}
2019-08-03 02:18:33 +08:00
export { GroupChatMsg, UsersTyping };