SPA gate should come from EC config not a URL param

This commit is contained in:
David Langley
2026-07-10 19:21:09 +01:00
parent 23a9e0c85e
commit a75eeaeda1
7 changed files with 56 additions and 10 deletions

View File

@@ -82,7 +82,6 @@ export const initializeWidget = (
baseUrl,
e2eEnabled,
allowIceFallback,
enableClientWellKnownLookups,
} = getUrlParams();
if (!roomId) throw new Error("Room ID must be supplied");
@@ -199,7 +198,7 @@ export const initializeWidget = (
// Leaving `clientWellKnownPollPeriod` unset stops the SDK polling the
// homeserver's `server_name` `.well-known` after login.
await client.startClient({
clientWellKnownPollPeriod: enableClientWellKnownLookups
clientWellKnownPollPeriod: Config.clientWellKnownLookupsEnabled()
? 60 * 10
: undefined,
});