diff --git a/modules/xmpp/JingleSessionPC.js b/modules/xmpp/JingleSessionPC.js index d316050e7..2fa407649 100644 --- a/modules/xmpp/JingleSessionPC.js +++ b/modules/xmpp/JingleSessionPC.js @@ -858,7 +858,11 @@ JingleSessionPC.prototype.sendTerminate = function (reason, text) { } }; -JingleSessionPC.prototype.addSource = function (elem, fromJid) { +/** + * Handles a Jingle source-add message for this Jingle session. + * @param elem An array of Jingle "content" elements. + */ +JingleSessionPC.prototype.addSource = function (elem) { var self = this; // FIXME: dirty waiting @@ -866,7 +870,7 @@ JingleSessionPC.prototype.addSource = function (elem, fromJid) { console.warn("addSource - localDescription not ready yet"); setTimeout(function() { - self.addSource(elem, fromJid); + self.addSource(elem); }, 200 ); @@ -939,14 +943,18 @@ JingleSessionPC.prototype.addSource = function (elem, fromJid) { }); }; -JingleSessionPC.prototype.removeSource = function (elem, fromJid) { +/** + * Handles a Jingle source-remove message for this Jingle session. + * @param elem An array of Jingle "content" elements. + */ +JingleSessionPC.prototype.removeSource = function (elem) { var self = this; // FIXME: dirty waiting if (!this.peerconnection.localDescription) { console.warn("removeSource - localDescription not ready yet"); setTimeout(function() { - self.removeSource(elem, fromJid); + self.removeSource(elem); }, 200 ); diff --git a/modules/xmpp/strophe.jingle.js b/modules/xmpp/strophe.jingle.js index 4b943e6c1..7fc87128e 100644 --- a/modules/xmpp/strophe.jingle.js +++ b/modules/xmpp/strophe.jingle.js @@ -174,11 +174,11 @@ module.exports = function(XMPP, eventEmitter) { break; case 'addsource': // FIXME: proprietary, un-jingleish case 'source-add': // FIXME: proprietary - sess.addSource($(iq).find('>jingle>content'), fromJid); + sess.addSource($(iq).find('>jingle>content')); break; case 'removesource': // FIXME: proprietary, un-jingleish case 'source-remove': // FIXME: proprietary - sess.removeSource($(iq).find('>jingle>content'), fromJid); + sess.removeSource($(iq).find('>jingle>content')); break; default: console.warn('jingle action not implemented', action);