diff --git a/bigbluebutton-html5/imports/api/captions/server/modifiers/eventHandlers.js b/bigbluebutton-html5/imports/api/captions/server/modifiers/eventHandlers.js old mode 100644 new mode 100755 index bb0d80853a..507d9279bd --- a/bigbluebutton-html5/imports/api/captions/server/modifiers/eventHandlers.js +++ b/bigbluebutton-html5/imports/api/captions/server/modifiers/eventHandlers.js @@ -34,6 +34,16 @@ eventEmitter.on('send_caption_history_reply_message', function (arg) { return arg.callback(); }); +eventEmitter.on('update_caption_owner_message', function(arg) { + console.error(JSON.stringify(arg)); + let payload = arg.payload; + + //#TODO updating the channel's owner's information here + //Need to figure what collection to use, Captions or Channels. + + return arg.callback(); +}); + eventEmitter.on('edit_caption_history_message', function (arg) { console.error(JSON.stringify(arg)); let payload = arg.payload; diff --git a/bigbluebutton-html5/imports/startup/server/EventQueue.js b/bigbluebutton-html5/imports/startup/server/EventQueue.js index 933c3a5962..be10109d46 100755 --- a/bigbluebutton-html5/imports/startup/server/EventQueue.js +++ b/bigbluebutton-html5/imports/startup/server/EventQueue.js @@ -151,4 +151,5 @@ const handledMessageTypes = [ 'get_all_meetings_reply_message', 'send_caption_history_reply_message', 'edit_caption_history_message', + 'update_caption_owner_message', ];