client-api: use authentication for profile api for synapse

This commit is contained in:
Julian Sparber 2021-02-05 13:49:12 +01:00 committed by GitHub
parent 1c0dab5a47
commit f8eedfe44d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 10 additions and 0 deletions

View File

@ -36,3 +36,4 @@ matches = "0.1.8"
[features] [features]
unstable-exhaustive-types = [] unstable-exhaustive-types = []
unstable-pre-spec = [] unstable-pre-spec = []
unstable-synapse-quirks = []

View File

@ -10,7 +10,10 @@ 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,7 +10,10 @@ 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,7 +10,10 @@ 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: {