mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-16 15:21:24 +01:00
Renamed MSC3575 -> MSC4186, remove obsolete config
This commit is contained in:
parent
b4f6c88e57
commit
c9a435ab34
7 changed files with 6 additions and 17 deletions
|
|
@ -165,7 +165,7 @@ features = [
|
|||
"state-res",
|
||||
"unstable-msc2448",
|
||||
"ring-compat",
|
||||
"unstable-msc3575",
|
||||
"unstable-msc4186",
|
||||
]
|
||||
|
||||
[target.'cfg(unix)'.dependencies]
|
||||
|
|
|
|||
|
|
@ -5,7 +5,7 @@ use crate::{
|
|||
service::rooms::timeline::PduCount, services, Error, PduEvent, Result,
|
||||
};
|
||||
|
||||
pub(crate) mod msc3575;
|
||||
pub(crate) mod msc4186;
|
||||
pub(crate) mod v3;
|
||||
|
||||
fn load_timeline(
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
//! [MSC3575], aka Sliding Sync, aka Sync v3 (even though the endpoint is called
|
||||
//! /v4) support
|
||||
//! [MSC4186], aka Simplified Sliding Sync, aka Simplified [MSC3575], support
|
||||
//!
|
||||
//! [MSC4186]: https://github.com/matrix-org/matrix-spec-proposals/pull/4186
|
||||
//! [MSC3575]: https://github.com/matrix-org/matrix-spec-proposals/pull/3575
|
||||
|
||||
use std::{
|
||||
|
|
@ -32,6 +32,7 @@ pub(crate) async fn get_supported_versions_route(
|
|||
unstable_features: BTreeMap::from_iter([
|
||||
("org.matrix.e2e_cross_signing".to_owned(), true),
|
||||
("org.matrix.msc3916.stable".to_owned(), true),
|
||||
("org.matrix.simplified_msc3575".to_owned(), true),
|
||||
]),
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -37,14 +37,5 @@ 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,
|
||||
}),
|
||||
})
|
||||
}
|
||||
|
|
|
|||
|
|
@ -651,7 +651,7 @@ fn client_routes() -> Router {
|
|||
.ruma_route(c2s::get_state_events_route)
|
||||
.ruma_route(c2s::get_state_events_for_key_route)
|
||||
.ruma_route(c2s::v3::sync_events_route)
|
||||
.ruma_route(c2s::msc3575::sync_events_v4_route)
|
||||
.ruma_route(c2s::msc4186::sync_events_v5_route)
|
||||
.ruma_route(c2s::get_context_route)
|
||||
.ruma_route(c2s::get_message_events_route)
|
||||
.ruma_route(c2s::search_events_route)
|
||||
|
|
|
|||
|
|
@ -151,9 +151,6 @@ pub(crate) struct ServerServerDiscovery {
|
|||
pub(crate) struct ClientServerDiscovery {
|
||||
/// The base URL to make client-server API requests to
|
||||
pub(crate) base_url: Url,
|
||||
|
||||
#[serde(default, rename = "advertise_buggy_sliding_sync")]
|
||||
pub(crate) advertise_sliding_sync: bool,
|
||||
}
|
||||
|
||||
#[derive(Debug, Deserialize)]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue