Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

fix(settings) Refreshes audio input levels when microphone permission is regranted.

mishraditi6907db1127c0
diff --git a/react/features/device-selection/components/AudioDevicesSelection.web.tsx b/react/features/device-selection/components/AudioDevicesSelection.web.tsx
index a5aa24bd70..2873b53e4f 100644
--- a/react/features/device-selection/components/AudioDevicesSelection.web.tsx
+++ b/react/features/device-selection/components/AudioDevicesSelection.web.tsx
@@ -235,6 +235,13 @@ class AudioDevicesSelection extends AbstractDialogTab<IProps, {}> {
!== this.props.selectedAudioInputId) {
this._createAudioInputTrack(this.props.selectedAudioInputId);
}
+
+ if (!prevProps.hasAudioPermission && this.props.hasAudioPermission) {
+ this._createAudioInputTrack(this.props.selectedAudioInputId)
+ ?.then(() => {
+ this.props.dispatch(getAvailableDevices());
+ });
+ }
}
/**