fixing some tests
This commit is contained in:
@@ -401,7 +401,9 @@ export class CallViewModel extends ViewModel {
|
||||
* The raw list of RemoteParticipants as reported by LiveKit
|
||||
*/
|
||||
private readonly rawRemoteParticipants$: Observable<RemoteParticipant[]> =
|
||||
connectedParticipantsObserver(this.livekitRoom).behavior(this.scope);
|
||||
connectedParticipantsObserver(this.livekitRoom)
|
||||
.pipe(startWith([]))
|
||||
.behavior(this.scope);
|
||||
|
||||
/**
|
||||
* Lists of RemoteParticipants to "hold" on display, even if LiveKit claims that
|
||||
@@ -507,6 +509,21 @@ export class CallViewModel extends ViewModel {
|
||||
)
|
||||
.behavior(this.scope);
|
||||
|
||||
public readonly handsRaised$ = this.handsRaisedSubject$.behavior(this.scope);
|
||||
|
||||
public readonly reactions$ = this.reactionsSubject$
|
||||
.pipe(
|
||||
map((v) =>
|
||||
Object.fromEntries(
|
||||
Object.entries(v).map(([a, { reactionOption }]) => [
|
||||
a,
|
||||
reactionOption,
|
||||
]),
|
||||
),
|
||||
),
|
||||
)
|
||||
.behavior(this.scope);
|
||||
|
||||
/**
|
||||
* List of MediaItems that we want to display
|
||||
*/
|
||||
@@ -1313,21 +1330,6 @@ export class CallViewModel extends ViewModel {
|
||||
},
|
||||
).behavior(this.scope);
|
||||
|
||||
public readonly reactions$ = this.reactionsSubject$
|
||||
.pipe(
|
||||
map((v) =>
|
||||
Object.fromEntries(
|
||||
Object.entries(v).map(([a, { reactionOption }]) => [
|
||||
a,
|
||||
reactionOption,
|
||||
]),
|
||||
),
|
||||
),
|
||||
)
|
||||
.behavior(this.scope);
|
||||
|
||||
public readonly handsRaised$ = this.handsRaisedSubject$.behavior(this.scope);
|
||||
|
||||
/**
|
||||
* Emits an array of reactions that should be visible on the screen.
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user