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$, this.deviceSelection$,
), ),
], ],
(available, selectId) => { (available, preferredId) => {
const id = selectId ?? available.keys().next().value; const id = preferredId ?? available.keys().next().value;
return id === undefined return id === undefined
? undefined ? undefined
: { id, virtualEarpiece: id === EARPIECE_CONFIG_ID }; : { id, virtualEarpiece: id === EARPIECE_CONFIG_ID };