Add config param to disable client wellknown fetch (#34084)

* Add enable_client_well_known_lookups config option

Signed-off-by: David Langley <langley.dave@gmail.com>

* Gate client .well-known poll on enable_client_well_known_lookups

Signed-off-by: David Langley <langley.dave@gmail.com>

* Gate MatrixRTC foci well-known fallback on enable_client_well_known_lookups

Signed-off-by: David Langley <langley.dave@gmail.com>

---------

Signed-off-by: David Langley <langley.dave@gmail.com>
Co-authored-by: David Langley <langley.dave@gmail.com>
This commit is contained in:
David Langley
2026-07-13 16:27:36 +01:00
committed by GitHub
parent c4606c19f8
commit 6aeb5f552b
7 changed files with 71 additions and 5 deletions
+5 -1
View File
@@ -263,7 +263,11 @@ class MatrixClientPegClass implements IMatrixClientPeg {
// the react sdk doesn't work without this, so don't allow
opts.pendingEventOrdering = PendingEventOrdering.Detached;
opts.lazyLoadMembers = true;
opts.clientWellKnownPollPeriod = 2 * 60 * 60; // 2 hours
// Poll the user's `<server_name>/.well-known/matrix/client` for client config unless disabled by config.
// Leaving `clientWellKnownPollPeriod` unset stops the SDK fetching it.
if (SdkConfig.get("enable_client_well_known_lookups")) {
opts.clientWellKnownPollPeriod = 2 * 60 * 60; // 2 hours
}
opts.threadSupport = true;
if (SettingsStore.getValue("feature_user_status")) {
opts.unstableMSC4429SyncUserProfileFields = ["org.matrix.msc4426.status"];