diff --git a/src/react-components/ui-root.js b/src/react-components/ui-root.js index 56e57b92d049b0ef0f0746bca028ab555f7c4fbd..83ddd1177f5be71efe796f02043bdceedb2cc6cd 100644 --- a/src/react-components/ui-root.js +++ b/src/react-components/ui-root.js @@ -290,12 +290,10 @@ class UIRoot extends Component { let hasAudio = false; const { lastUsedMicDeviceId } = this.props.store.state; - // Try to fetch last used mic, and if we don't get it then fall back to default. + // Try to fetch last used mic, if there was one. if (lastUsedMicDeviceId) { hasAudio = await this.fetchAudioTrack({ audio: { deviceId: { ideal: lastUsedMicDeviceId } } }); - } - - if (!hasAudio) { + } else { hasAudio = await this.fetchAudioTrack({ audio: true }); }