diff --git a/modules/RTC/DataChannels.js b/modules/RTC/DataChannels.js index 81aac2351..aaeed319f 100644 --- a/modules/RTC/DataChannels.js +++ b/modules/RTC/DataChannels.js @@ -67,7 +67,7 @@ DataChannels.prototype.onDataChannel = function (event) { // selections so that it can do adaptive simulcast, // we want the notification to trigger even if userJid is undefined, // or null. - this.handleSelectedEndpointEvent(this.lastSelectedEndpoint); + self.handleSelectedEndpointEvent(self.lastSelectedEndpoint); }; dataChannel.onerror = function (error) {