mirror of
https://github.com/vector-im/element-call.git
synced 2026-09-22 22:29:30 +00:00
Swallow local transport errors in connection manager
This commit is contained in:
@@ -14,6 +14,8 @@ import {
|
|||||||
of,
|
of,
|
||||||
switchMap,
|
switchMap,
|
||||||
startWith,
|
startWith,
|
||||||
|
catchError,
|
||||||
|
NEVER,
|
||||||
} from "rxjs";
|
} from "rxjs";
|
||||||
import { type Logger } from "matrix-js-sdk/lib/logger";
|
import { type Logger } from "matrix-js-sdk/lib/logger";
|
||||||
import { type RemoteParticipant } from "livekit-client";
|
import { type RemoteParticipant } from "livekit-client";
|
||||||
@@ -129,6 +131,9 @@ export function createConnectionManager$({
|
|||||||
// TODO logger: only construct one logger from the client and make it compatible via a EC specific sing
|
// TODO logger: only construct one logger from the client and make it compatible via a EC specific sing
|
||||||
|
|
||||||
const localTransportAsArray$ = localTransport$.pipe(
|
const localTransportAsArray$ = localTransport$.pipe(
|
||||||
|
// LocalMember already surfaces local transport errors properly in the UI,
|
||||||
|
// here we can just swallow them
|
||||||
|
catchError(() => NEVER),
|
||||||
map((transport) => [transport]),
|
map((transport) => [transport]),
|
||||||
startWith([]),
|
startWith([]),
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user