Merge pull request #33796 from anoadragon453/anoa/fix_transports_error_handling

Fix "unexpected error" logging when fetching RTC transports from the homeserver
This commit is contained in:
Will Hunt
2026-06-09 15:28:26 +00:00
committed by GitHub
+4 -1
View File
@@ -62,7 +62,10 @@ export class CallStore extends AsyncStoreWithClient<EmptyObject> {
transports.forEach((t) => this.configuredMatrixRTCTransports.add(t));
} catch (ex) {
// Expected, MSC not implemented.
if (ex instanceof MatrixError === false || ex.errcode !== "M_NOT_FOUND") {
//
// Homeservers will return a 404 M_UNRECOGNIZED matrix error if they
// don't implement a requested endpoint.
if (ex instanceof MatrixError === false || ex.errcode !== "M_UNRECOGNIZED") {
logger.warn("Unexpected error when trying to fetch RTC transports", ex);
}
}