From a30e8808768279afc9bfcddd9a834f53b2db1896 Mon Sep 17 00:00:00 2001 From: paweldomas Date: Tue, 13 Jun 2017 09:56:59 -0500 Subject: [PATCH] fix(AudioInputPreview): do not care about TPC TraceablePeerConnection argument is lib-jitsi-meet internal and the app does not need to care. --- .../device-selection/components/AudioInputPreview.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/react/features/device-selection/components/AudioInputPreview.js b/react/features/device-selection/components/AudioInputPreview.js index 1ab5675df..242d35a42 100644 --- a/react/features/device-selection/components/AudioInputPreview.js +++ b/react/features/device-selection/components/AudioInputPreview.js @@ -53,7 +53,7 @@ class AudioInputPreview extends PureComponent { */ componentWillReceiveProps(nextProps) { this._listenForAudioUpdates(nextProps.track); - this._updateAudioLevel(undefined, 0); + this._updateAudioLevel(0); } /** @@ -118,13 +118,11 @@ class AudioInputPreview extends PureComponent { * Updates the internal state of the last know audio level. The level should * be between 0 and 1, as the level will be used as a percentage out of 1. * - * @param {TraceablePeerConnection} peerConnection - The peer connection - * representation from the library. * @param {number} audioLevel - The new audio level for the track. * @private * @returns {void} */ - _updateAudioLevel(peerConnection, audioLevel) { + _updateAudioLevel(audioLevel) { this.setState({ audioLevel });