diff --git a/bigbluebutton-html5/imports/api/2.0/users/server/methods/requestStunTurn.js b/bigbluebutton-html5/imports/api/2.0/users/server/methods/requestStunTurn.js deleted file mode 100644 index 638072d133..0000000000 --- a/bigbluebutton-html5/imports/api/2.0/users/server/methods/requestStunTurn.js +++ /dev/null @@ -1,22 +0,0 @@ -import { Meteor } from 'meteor/meteor'; -import { check } from 'meteor/check'; -import RedisPubSub from '/imports/startup/server/redis2x'; -import Logger from '/imports/startup/server/logger'; - -export default function requestStunTurn(meetingId, requesterUserId) { - const REDIS_CONFIG = Meteor.settings.redis; - const CHANNEL = REDIS_CONFIG.channels.fromBBBUsers; - const EVENT_NAME = 'send_stun_turn_info_request_message'; - - check(meetingId, String); - check(requesterUserId, String); - - const payload = { - meeting_id: meetingId, - requester_id: requesterUserId, - }; - - Logger.verbose(`User '${requesterUserId}' requested stun/turn from meeting '${meetingId}'`); - - return RedisPubSub.publishMeetingMessage(CHANNEL, EVENT_NAME, meetingId, payload); -} diff --git a/bigbluebutton-html5/imports/api/2.0/users/server/modifiers/addUser.js b/bigbluebutton-html5/imports/api/2.0/users/server/modifiers/addUser.js index 820a2063b5..d87b6a0fee 100644 --- a/bigbluebutton-html5/imports/api/2.0/users/server/modifiers/addUser.js +++ b/bigbluebutton-html5/imports/api/2.0/users/server/modifiers/addUser.js @@ -102,9 +102,6 @@ export default function addUser(meetingId, user) { return Logger.error(`Adding user to collection: ${err}`); } - // TODO: Do we really need to request the stun/turn everytime? - // requestStunTurn(meetingId, userId); - const { insertedId } = numChanged; if (insertedId) { return Logger.info(`Added user id=${userId} meeting=${meetingId}`);