remove destroyGroupChat meteor call

This commit is contained in:
Ramón Souza 2023-12-15 17:02:55 -03:00
parent ba5445e236
commit 787d73cc03
5 changed files with 0 additions and 43 deletions

View File

@ -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;

View File

@ -1 +0,0 @@
import './methods';

View File

@ -1,6 +0,0 @@
import { Meteor } from 'meteor/meteor';
import destroyGroupChat from './methods/destroyGroupChat';
Meteor.methods({
destroyGroupChat,
});

View File

@ -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}`);
}
}

View File

@ -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';