mirror of
https://github.com/vector-im/element-call.git
synced 2026-07-09 18:29:21 +00:00
@@ -323,11 +323,7 @@ export function useLivekit(
|
|||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
// Sync the requested devices with LiveKit's devices
|
// Sync the requested devices with LiveKit's devices
|
||||||
if (
|
if (room !== undefined && connectionState === ConnectionState.Connected) {
|
||||||
room !== undefined &&
|
|
||||||
connectionState === ConnectionState.Connected &&
|
|
||||||
!controlledAudioDevices
|
|
||||||
) {
|
|
||||||
const syncDevice = (
|
const syncDevice = (
|
||||||
kind: MediaDeviceKind,
|
kind: MediaDeviceKind,
|
||||||
selected$: Observable<SelectedDevice | undefined>,
|
selected$: Observable<SelectedDevice | undefined>,
|
||||||
|
|||||||
Reference in New Issue
Block a user