|
@@ -535,8 +535,21 @@ var VideoLayout = (function (my) {
|
535
|
535
|
VideoLayout.removeRemoteStreamElement(
|
536
|
536
|
stream, isVideo, container);
|
537
|
537
|
|
538
|
|
- if (peerJid)
|
539
|
|
- ContactList.removeContact(peerJid);
|
|
538
|
+ // NOTE(gp) it seems that under certain circumstances, the
|
|
539
|
+ // onended event is not fired and thus the contact list is not
|
|
540
|
+ // updated.
|
|
541
|
+ //
|
|
542
|
+ // The onended event of a stream should be fired when the SSRCs
|
|
543
|
+ // corresponding to that stream are removed from the SDP; but
|
|
544
|
+ // this doesn't seem to always be the case, resulting in ghost
|
|
545
|
+ // contacts.
|
|
546
|
+ //
|
|
547
|
+ // In an attempt to fix the ghost contacts problem, I'm moving
|
|
548
|
+ // the removeContact() method call in app.js, inside the
|
|
549
|
+ // 'muc.left' event handler.
|
|
550
|
+
|
|
551
|
+ //if (peerJid)
|
|
552
|
+ // ContactList.removeContact(peerJid);
|
540
|
553
|
};
|
541
|
554
|
|
542
|
555
|
// Add click handler.
|