client-api: Remove unstable-synapse-quirks feature

Only worked around `authentication` sometimes being required,
which now can be achieved with `SendAccessToken`
This commit is contained in:
Johannes Becker 2021-04-22 16:36:14 +02:00 committed by Jonas Platte
parent 0ca5785ead
commit 37462b9ae1
6 changed files with 0 additions and 15 deletions

View File

@ -37,6 +37,5 @@ matches = "0.1.8"
compat = [] compat = []
unstable-exhaustive-types = [] unstable-exhaustive-types = []
unstable-pre-spec = [] unstable-pre-spec = []
unstable-synapse-quirks = []
client = [] client = []
server = [] server = []

View File

@ -10,10 +10,7 @@ ruma_api! {
name: "get_avatar_url", name: "get_avatar_url",
path: "/_matrix/client/r0/profile/:user_id/avatar_url", path: "/_matrix/client/r0/profile/:user_id/avatar_url",
rate_limited: false, rate_limited: false,
#[cfg(not(feature = "unstable-synapse-quirks"))]
authentication: None, authentication: None,
#[cfg(feature = "unstable-synapse-quirks")]
authentication: AccessToken,
} }
request: { request: {

View File

@ -10,10 +10,7 @@ ruma_api! {
name: "get_display_name", name: "get_display_name",
path: "/_matrix/client/r0/profile/:user_id/displayname", path: "/_matrix/client/r0/profile/:user_id/displayname",
rate_limited: false, rate_limited: false,
#[cfg(not(feature = "unstable-synapse-quirks"))]
authentication: None, authentication: None,
#[cfg(feature = "unstable-synapse-quirks")]
authentication: AccessToken,
} }
request: { request: {

View File

@ -10,10 +10,7 @@ ruma_api! {
name: "get_profile", name: "get_profile",
path: "/_matrix/client/r0/profile/:user_id", path: "/_matrix/client/r0/profile/:user_id",
rate_limited: false, rate_limited: false,
#[cfg(not(feature = "unstable-synapse-quirks"))]
authentication: None, authentication: None,
#[cfg(feature = "unstable-synapse-quirks")]
authentication: AccessToken,
} }
request: { request: {

View File

@ -116,6 +116,3 @@ unstable-pre-spec = [
#"ruma-identity-service-api/unstable-pre-spec", #"ruma-identity-service-api/unstable-pre-spec",
#"ruma-push-gateway-api/unstable-pre-spec", #"ruma-push-gateway-api/unstable-pre-spec",
] ]
unstable-synapse-quirks = [
"ruma-client-api/unstable-synapse-quirks",
]

View File

@ -46,8 +46,6 @@
//! breaking changes when new fields are added in the specification. This feature compiles all //! breaking changes when new fields are added in the specification. This feature compiles all
//! types as exhaustive. //! types as exhaustive.
//! * `unstable-pre-spec` -- Upcoming Matrix features that may be subject to change or removal. //! * `unstable-pre-spec` -- Upcoming Matrix features that may be subject to change or removal.
//! * `unstable-synapse-quirks` -- Fix issues for clients expecting to connect to Synapse
//! homeservers, at the expense of being less compatible with other homeservers.
//! //!
//! # Common features //! # Common features
//! //!