mirror of
https://github.com/vector-im/element-call.git
synced 2024-11-21 00:28:08 +08:00
Fix incorrect type assertion
This commit is contained in:
parent
23579b2ab1
commit
8f59f087cc
@ -663,9 +663,11 @@ export class CallViewModel extends ViewModel {
|
||||
switchMap((mediaItems) => {
|
||||
const localUserMedia = mediaItems.find(
|
||||
(m) => m.vm instanceof LocalUserMediaViewModel,
|
||||
) as LocalUserMediaViewModel | undefined;
|
||||
) as UserMedia | undefined;
|
||||
return (
|
||||
localUserMedia?.alwaysShow?.pipe(
|
||||
(
|
||||
localUserMedia?.vm as LocalUserMediaViewModel
|
||||
).alwaysShow.pipe(
|
||||
map((alwaysShow) =>
|
||||
alwaysShow ? localUserMedia : undefined,
|
||||
),
|
||||
|
Loading…
Reference in New Issue
Block a user