Skip to content

Commit

Permalink
fix: add a test
Browse files Browse the repository at this point in the history
  • Loading branch information
raviteja83 committed Dec 10, 2024
1 parent fa2c227 commit 0a6e1d2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ export class DeviceManager implements HMSDeviceManager {
*/
// eslint-disable-next-line complexity
public autoSelectAudioOutput = async () => {
if ('ondevicechange' in navigator.mediaDevices) {
if ('ondevicechange' in navigator.mediaDevices || !this.store.getLocalPeer()?.joinedAt) {
return;
}
const { bluetoothDevice, earpiece, speakerPhone, wired } = this.categorizeAudioInputDevices();
Expand Down

0 comments on commit 0a6e1d2

Please sign in to comment.