remove destroyGroupChat meteor call
This commit is contained in:
parent
ba5445e236
commit
787d73cc03
@ -1,7 +0,0 @@
|
||||
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;
|
@ -1 +0,0 @@
|
||||
import './methods';
|
@ -1,6 +0,0 @@
|
||||
import { Meteor } from 'meteor/meteor';
|
||||
import destroyGroupChat from './methods/destroyGroupChat';
|
||||
|
||||
Meteor.methods({
|
||||
destroyGroupChat,
|
||||
});
|
@ -1,28 +0,0 @@
|
||||
import { Meteor } from 'meteor/meteor';
|
||||
import RedisPubSub from '/imports/startup/server/redis';
|
||||
import { extractCredentials } from '/imports/api/common/server/helpers';
|
||||
import { check } from 'meteor/check';
|
||||
import Logger from '/imports/startup/server/logger';
|
||||
|
||||
export default function destroyGroupChat() {
|
||||
const REDIS_CONFIG = Meteor.settings.private.redis;
|
||||
const CHANNEL = REDIS_CONFIG.channels.toAkkaApps;
|
||||
|
||||
try {
|
||||
const { meetingId, requesterUserId } = extractCredentials(this.userId);
|
||||
|
||||
check(meetingId, String);
|
||||
check(requesterUserId, String);
|
||||
|
||||
const eventName = 'DestroyGroupChatReqMsg';
|
||||
|
||||
const payload = {
|
||||
// TODO: Implement this together with #4988
|
||||
// chats: Array[String],
|
||||
};
|
||||
|
||||
RedisPubSub.publishUserMessage(CHANNEL, eventName, meetingId, requesterUserId, payload);
|
||||
} catch (err) {
|
||||
Logger.error(`Exception while invoking method createGroupChat ${err.stack}`);
|
||||
}
|
||||
}
|
@ -12,7 +12,6 @@ import '/imports/api/presentation-upload-token/server';
|
||||
import '/imports/api/slides/server';
|
||||
import '/imports/api/breakouts/server';
|
||||
import '/imports/api/breakouts-history/server';
|
||||
import '/imports/api/group-chat/server';
|
||||
import '/imports/api/screenshare/server';
|
||||
import '/imports/api/users-settings/server';
|
||||
import '/imports/api/voice-users/server';
|
||||
|
Loading…
Reference in New Issue
Block a user