mirror of
https://github.com/vector-im/element-call.git
synced 2026-03-16 06:17:10 +00:00
Use consistent name for preferred device IDs
This commit is contained in:
@@ -277,8 +277,8 @@ class ControlledAudioOutput
|
||||
this.deviceSelection$,
|
||||
),
|
||||
],
|
||||
(available, selectId) => {
|
||||
const id = selectId ?? available.keys().next().value;
|
||||
(available, preferredId) => {
|
||||
const id = preferredId ?? available.keys().next().value;
|
||||
return id === undefined
|
||||
? undefined
|
||||
: { id, virtualEarpiece: id === EARPIECE_CONFIG_ID };
|
||||
|
||||
Reference in New Issue
Block a user