bigbluebutton-Github/bigbluebutton-html5/imports/api/group-chat/server/methods/destroyGroupChat.js

19 lines
646 B
JavaScript
Raw Normal View History

import { Meteor } from 'meteor/meteor';
import RedisPubSub from '/imports/startup/server/redis';
import { extractCredentials } from '/imports/api/common/server/helpers';
export default function createGroupChat() {
const REDIS_CONFIG = Meteor.settings.private.redis;
const CHANNEL = REDIS_CONFIG.channels.toAkkaApps;
const { meetingId, requesterUserId } = extractCredentials(this.userId);
const eventName = 'DestroyGroupChatReqMsg';
const payload = {
// TODO: Implement this together with #4988
// chats: Array[String],
};
return RedisPubSub.publishUserMessage(CHANNEL, eventName, meetingId, requesterUserId, payload);
}