Use consistent name for preferred device IDs

This commit is contained in:
Robin
2025-06-25 13:42:31 -04:00
parent f3419f94c3
commit f4d590c703

View File

@@ -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 };