mirror of
https://github.com/vector-im/element-call.git
synced 2026-03-16 06:17:10 +00:00
Behavior not emiting initial value
This commit is contained in:
@@ -395,7 +395,7 @@ class ControlledAudioOutput implements MediaDevice<
|
||||
|
||||
public readonly selected$ = this.scope.behavior(
|
||||
combineLatest(
|
||||
[this.available$, this.deviceSelection$],
|
||||
[this.available$, this.deviceSelection$.pipe(startWith(undefined))],
|
||||
(available, preferredId) => {
|
||||
this.logger.debug(
|
||||
`selecting device: Preferred:${preferredId}: platform ${this.platform}, intent:${this.initialIntent}: Available: ${Array.from(available.keys()).join(",")}`,
|
||||
|
||||
Reference in New Issue
Block a user