Show typed error when matrix_2_0 mode is forced without homeserver MSC4354 support (#4017)

Show typed error when matrix_2_0 mode is forced without homeserver MSC4354 support
This commit is contained in:
fkwp
2026-06-10 18:48:16 +02:00
committed by GitHub
parent 3a824dfff0
commit 73ccc5f483
8 changed files with 380 additions and 24 deletions

View File

@@ -32,6 +32,7 @@ import {
LivekitConnectionError,
MatrixRTCTransportMissingError,
PeerConnectionTimeoutError,
StickyEventsRequiredError,
UnknownCallError,
} from "../utils/errors.ts";
import { mockConfig } from "../utils/test.ts";
@@ -59,6 +60,12 @@ test.each([
expectedDescription:
"The server has reached its maximum capacity and you cannot join the call at this time. Try again later, or contact your server admin if the problem persists.",
},
{
error: new StickyEventsRequiredError(),
expectedTitle: "Homeserver does not support Matrix 2.0 calls",
expectedDescription:
"This deployment is configured to use Matrix 2.0 call mode, but the homeserver does not advertise support for sticky events (MSC4354). Ask your server admin to upgrade, or switch the deployment to a compatible mode.",
},
])(
"should report correct error for $expectedTitle",
async ({ error, expectedTitle, expectedDescription }) => {