Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.
TypeScript debiandeep-videojitsijitsi-meetscalable-video-conferencessfuvideovideo-communicationvideo-conferencingwebrtc
fix(pinning): bind the callback for contact list clicking
Leonard Kim21d419e5177a
diff --git a/modules/UI/videolayout/VideoLayout.js b/modules/UI/videolayout/VideoLayout.jsindex acd66e2e4d..9439e3b7f3 100644--- a/modules/UI/videolayout/VideoLayout.js+++ b/modules/UI/videolayout/VideoLayout.js@@ -110,6 +110,8 @@ var VideoLayout = {// the local video thumb maybe one pixelthis.resizeThumbnails(false, true);+ this._onContactClicked = onContactClicked.bind(this);+this.registerListeners();},@@ -133,7 +135,8 @@ var VideoLayout = {registerListeners() {eventEmitter.addListener(UIEvents.LOCAL_FLIPX_CHANGED,onLocalFlipXChanged);- eventEmitter.addListener(UIEvents.CONTACT_CLICKED, onContactClicked);+ eventEmitter.addListener(UIEvents.CONTACT_CLICKED,+ this._onContactClicked);},/**@@ -142,7 +145,10 @@ var VideoLayout = {* @returns {void}*/unregisterListeners() {- eventEmitter.removeListener(UIEvents.CONTACT_CLICKED, onContactClicked);+ if (this._onContactClicked) {+ eventEmitter.removeListener(UIEvents.CONTACT_CLICKED,+ this._onContactClicked);+ }},initLargeVideo () {