Browse Source

Added comment to "peerIds".

pull/284/head
Joachim Bauch 9 years ago
parent
commit
77fe6fe508
  1. 4
      static/js/mediastream/peerconference.js

4
static/js/mediastream/peerconference.js

@ -262,6 +262,10 @@ define(['jquery', 'underscore', 'mediastream/peercall'], function($, _, PeerCall @@ -262,6 +262,10 @@ define(['jquery', 'underscore', 'mediastream/peercall'], function($, _, PeerCall
PeerConference.prototype.peerIds = function() {
var result = _.keys(this.calls);
// "peerIds" returns the session ids of all participants in the
// conference, so we need to add the id of the peer the user called
// manually before migrating to a conference (but only if it has an id,
// i.e. is not an internal call object).
if (this.currentcall && this.currentcall.id && result.indexOf(this.currentcall.id) === -1) {
result.push(this.currentcall.id);
}

Loading…
Cancel
Save