diff --git a/bigbluebutton-html5/imports/api/group-chat/index.js b/bigbluebutton-html5/imports/api/group-chat/index.js deleted file mode 100644 index ddea623223..0000000000 --- a/bigbluebutton-html5/imports/api/group-chat/index.js +++ /dev/null @@ -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; diff --git a/bigbluebutton-html5/imports/api/group-chat/server/index.js b/bigbluebutton-html5/imports/api/group-chat/server/index.js deleted file mode 100644 index ba55c4a16e..0000000000 --- a/bigbluebutton-html5/imports/api/group-chat/server/index.js +++ /dev/null @@ -1 +0,0 @@ -import './methods'; diff --git a/bigbluebutton-html5/imports/api/group-chat/server/methods.js b/bigbluebutton-html5/imports/api/group-chat/server/methods.js deleted file mode 100644 index 3813750579..0000000000 --- a/bigbluebutton-html5/imports/api/group-chat/server/methods.js +++ /dev/null @@ -1,6 +0,0 @@ -import { Meteor } from 'meteor/meteor'; -import destroyGroupChat from './methods/destroyGroupChat'; - -Meteor.methods({ - destroyGroupChat, -}); diff --git a/bigbluebutton-html5/imports/api/group-chat/server/methods/destroyGroupChat.js b/bigbluebutton-html5/imports/api/group-chat/server/methods/destroyGroupChat.js deleted file mode 100644 index fbe21463c3..0000000000 --- a/bigbluebutton-html5/imports/api/group-chat/server/methods/destroyGroupChat.js +++ /dev/null @@ -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}`); - } -} diff --git a/bigbluebutton-html5/server/main.js b/bigbluebutton-html5/server/main.js index a78ee653ad..513f054e8b 100755 --- a/bigbluebutton-html5/server/main.js +++ b/bigbluebutton-html5/server/main.js @@ -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';