Revert "Remove support for MSC3575 (sliding sync)"

This reverts commit d87848b9a6.
This commit is contained in:
Lambda 2025-08-10 10:49:50 +00:00
parent bbd0439001
commit dd705a2bb2
9 changed files with 954 additions and 7 deletions

View file

@ -37,5 +37,14 @@ pub(crate) async fn client(_: Ar<client::Request>) -> Ra<client::Response> {
Ra(client::Response {
homeserver: client::HomeserverInfo::new(base_url.clone()),
identity_server: None,
sliding_sync_proxy: services()
.globals
.config
.server_discovery
.client
.advertise_sliding_sync
.then_some(client::SlidingSyncProxyInfo {
url: base_url,
}),
})
}