From c0eee624311c12ee9c3eb14737988e3f0a60fb3f Mon Sep 17 00:00:00 2001 From: poljar Date: Mon, 26 Oct 2020 13:16:34 +0100 Subject: [PATCH] client-api: Fix the signing key uploading endpoint Uploading signing keys requires auth using UIAA, the error has thus been changed to the UiaaResponse. Uploading signing keys also fails under Synapse when using the /r0 API path, using the /unstable path succeeds. --- ruma-client-api/src/r0/keys/upload_signing_keys.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ruma-client-api/src/r0/keys/upload_signing_keys.rs b/ruma-client-api/src/r0/keys/upload_signing_keys.rs index 1ed943f8..bc2d963e 100644 --- a/ruma-client-api/src/r0/keys/upload_signing_keys.rs +++ b/ruma-client-api/src/r0/keys/upload_signing_keys.rs @@ -3,14 +3,14 @@ use ruma_api::ruma_api; use super::CrossSigningKey; -use crate::r0::uiaa::{AuthData, IncomingAuthData}; +use crate::r0::uiaa::{AuthData, IncomingAuthData, UiaaResponse}; ruma_api! { metadata: { description: "Publishes cross signing keys for the user.", method: POST, name: "upload_signing_keys", - path: "/_matrix/client/r0/keys/device_signing/upload", + path: "/_matrix/client/unstable/keys/device_signing/upload", rate_limited: false, authentication: AccessToken, } @@ -39,7 +39,7 @@ ruma_api! { #[derive(Default)] response: {} - error: crate::Error + error: UiaaResponse } impl Request<'_> {