From 4af7cbca5a51102d6adfbf229bbf85e90abe0f89 Mon Sep 17 00:00:00 2001 From: raviteja83 Date: Fri, 8 Mar 2024 11:43:04 +0530 Subject: [PATCH] fix: remove unnecessary check --- packages/hms-video-store/src/device-manager/DeviceManager.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/packages/hms-video-store/src/device-manager/DeviceManager.ts b/packages/hms-video-store/src/device-manager/DeviceManager.ts index d704335654..926c341573 100644 --- a/packages/hms-video-store/src/device-manager/DeviceManager.ts +++ b/packages/hms-video-store/src/device-manager/DeviceManager.ts @@ -192,11 +192,8 @@ export class DeviceManager implements HMSDeviceManager { await this.enumerateDevices(); this.logDevices('After Device Change'); const localPeer = this.store.getLocalPeer(); - const audioTrack = localPeer?.audioTrack; await this.setOutputDevice(true); - if (audioTrack) { - await this.handleAudioInputDeviceChange(localPeer?.audioTrack); - } + await this.handleAudioInputDeviceChange(localPeer?.audioTrack); await this.handleVideoInputDeviceChange(localPeer?.videoTrack); this.eventBus.analytics.publish( AnalyticsEventFactory.deviceChange({