Initial handling of the 'update_caption_owner_message'

This commit is contained in:
Oleksandr Zhurbenko 2016-07-14 13:55:49 -07:00
parent 6a984c2b68
commit 9b85629f2c
2 changed files with 11 additions and 0 deletions

View File

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

View File

@ -151,4 +151,5 @@ const handledMessageTypes = [
'get_all_meetings_reply_message',
'send_caption_history_reply_message',
'edit_caption_history_message',
'update_caption_owner_message',
];