From 24be4ce9d2a522ef8f7b77c222e6b87a2e823c41 Mon Sep 17 00:00:00 2001 From: Hugh Nimmo-Smith Date: Fri, 28 Aug 2026 16:25:16 +0100 Subject: [PATCH] Avoid unhandled promise rejection from CallStore.onReady() As well as the usual network/server errors, a call to `waitForClientWellKnown()` can throw whilst the client is still starting up. --- apps/web/src/stores/CallStore.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/web/src/stores/CallStore.ts b/apps/web/src/stores/CallStore.ts index 128818c672f..9c1c721a51f 100644 --- a/apps/web/src/stores/CallStore.ts +++ b/apps/web/src/stores/CallStore.ts @@ -55,7 +55,7 @@ export class CallStore extends AsyncStoreWithClient { // Fetch transports, but don't await the result. this.matrixClient.cachedRtcTransports.wait().catch(() => { if (SdkConfig.get("enable_client_well_known_lookups")) { - void this.matrixClient?.waitForClientWellKnown(); + this.matrixClient?.waitForClientWellKnown().catch(() => {}); } });