mirror of
https://github.com/oxen-io/session-desktop.git
synced 2023-12-14 02:12:57 +01:00
auto select the first audio input on connection success webrtc
This commit is contained in:
parent
d5f6180ae6
commit
53289298a9
|
@ -558,6 +558,10 @@ function handleConnectionStateChanged(pubkey: string) {
|
|||
closeVideoCall();
|
||||
} else if (peerConnection?.connectionState === 'connected') {
|
||||
setIsRinging(false);
|
||||
const firstAudioInput = audioInputsList?.[0].deviceId || undefined;
|
||||
if (firstAudioInput) {
|
||||
void selectAudioInputByDeviceId(firstAudioInput);
|
||||
}
|
||||
window.inboxStore?.dispatch(callConnected({ pubkey }));
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue