mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-12-05 19:48:05 +00:00
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:
@@ -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"];
|
||||
|
||||
Reference in New Issue
Block a user