Merge pull request #2541 from robintown/local-on-local
Don't show local media on top of itself
This commit is contained in:
@@ -488,11 +488,17 @@ export class CallViewModel extends ViewModel {
|
|||||||
? ([of(screenShares.map((m) => m.vm)), this.spotlightSpeaker] as const)
|
? ([of(screenShares.map((m) => m.vm)), this.spotlightSpeaker] as const)
|
||||||
: ([
|
: ([
|
||||||
this.spotlightSpeaker.pipe(map((speaker) => [speaker!])),
|
this.spotlightSpeaker.pipe(map((speaker) => [speaker!])),
|
||||||
this.localUserMedia.pipe(
|
this.spotlightSpeaker.pipe(
|
||||||
switchMap((vm) =>
|
switchMap((speaker) =>
|
||||||
vm.alwaysShow.pipe(
|
speaker.local
|
||||||
map((alwaysShow) => (alwaysShow ? vm : null)),
|
? of(null)
|
||||||
),
|
: this.localUserMedia.pipe(
|
||||||
|
switchMap((vm) =>
|
||||||
|
vm.alwaysShow.pipe(
|
||||||
|
map((alwaysShow) => (alwaysShow ? vm : null)),
|
||||||
|
),
|
||||||
|
),
|
||||||
|
),
|
||||||
),
|
),
|
||||||
),
|
),
|
||||||
] as const),
|
] as const),
|
||||||
|
|||||||
Reference in New Issue
Block a user