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
ref(device-selection): change audio preview listener on component update
Leonard Kimc28c70fb2ff6
diff --git a/react/features/device-selection/components/AudioInputPreview.js b/react/features/device-selection/components/AudioInputPreview.jsindex 987d38995a..2953568c46 100644--- a/react/features/device-selection/components/AudioInputPreview.js+++ b/react/features/device-selection/components/AudioInputPreview.js@@ -63,9 +63,9 @@ class AudioInputPreview extends Component<Props, State> {* @inheritdoc* @returns {void}*/- componentWillReceiveProps(nextProps: Props) {- if (nextProps.track !== this.props.track) {- this._listenForAudioUpdates(nextProps.track);+ componentDidUpdate(prevProps: Props) {+ if (prevProps.track !== this.props.track) {+ this._listenForAudioUpdates(this.props.track);this._updateAudioLevel(0);}}