Skip to content

Commit b4d6cb9

Browse files
pixlwavebnjbvr
andauthored
Update crates/matrix-sdk/src/client/builder.rs
Co-authored-by: Benjamin Bouvier <[email protected]> Signed-off-by: Doug <[email protected]>
1 parent ae2cc31 commit b4d6cb9

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

crates/matrix-sdk/src/client/builder.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -478,9 +478,8 @@ impl ClientBuilder {
478478
// requests to be sent directly to the homeserver.
479479
tracing::info!("Simplified MSC3575 is enabled, ignoring any sliding sync proxy.");
480480
sliding_sync_proxy = None;
481-
} else {
481+
} else if let Some(well_known) = well_known {
482482
// Otherwise, if a proxy wasn't set, use the one discovered from the well-known.
483-
if let Some(well_known) = well_known {
484483
if sliding_sync_proxy.is_none() {
485484
sliding_sync_proxy =
486485
well_known.sliding_sync_proxy.and_then(|p| Url::parse(&p.url).ok())

0 commit comments

Comments
 (0)