mirror of
https://github.com/element-hq/element-call.git
synced 2026-10-22 17:32:19 +00:00
Fix empty string IDs not counting as devices
This commit is contained in:
1 parent
3b1ce22b71
commit
f3419f94c3
1 file changed
+3
-3
@@ -279,9 +279,9 @@ class ControlledAudioOutput
|
||||
],
|
||||
(available, selectId) => {
|
||||
const id = selectId ?? available.keys().next().value;
|
||||
return id
|
||||
? { id, virtualEarpiece: id === EARPIECE_CONFIG_ID }
|
||||
: undefined;
|
||||
return id === undefined
|
||||
? undefined
|
||||
: { id, virtualEarpiece: id === EARPIECE_CONFIG_ID };
|
||||
},
|
||||
).pipe(this.scope.state());
|
||||
|
||||
|
||||
Reference in new issue
Block a user