Swallow local transport errors in connection manager

This commit is contained in:
Robin
2026-09-22 10:01:14 +02:00
parent 3a189d155b
commit c9f911b7c9
@@ -14,6 +14,8 @@ import {
of,
switchMap,
startWith,
catchError,
NEVER,
} from "rxjs";
import { type Logger } from "matrix-js-sdk/lib/logger";
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
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]),
startWith([]),
);