From 59bbef5a35e3a4944f0843f2950904d274a12f1a Mon Sep 17 00:00:00 2001 From: Isaiah Inuwa Date: Fri, 21 Feb 2020 17:49:14 -0600 Subject: [PATCH] Remove deprecate account bind endpoint. --- CHANGELOG.md | 1 + src/r0/contact.rs | 1 - src/r0/contact/create_contact.rs | 39 -------------------------------- 3 files changed, 1 insertion(+), 40 deletions(-) delete mode 100644 src/r0/contact/create_contact.rs diff --git a/CHANGELOG.md b/CHANGELOG.md index 962c74e2..44529876 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -14,6 +14,7 @@ Breaking changes: * Fix `r0::session::get_login_types` * Add `allow_remote` parameter to `r0::media::get_content` * Add missing parameters for `r0::room::create_room` +* Remove deprecated endpoint `r0::contact::create_contact` (deprecated in r0.6.0) # 0.6.0 diff --git a/src/r0/contact.rs b/src/r0/contact.rs index 39bb1d10..41c13004 100644 --- a/src/r0/contact.rs +++ b/src/r0/contact.rs @@ -1,5 +1,4 @@ //! Endpoints for account contact information. -pub mod create_contact; pub mod get_contacts; pub mod request_contact_verification_token; diff --git a/src/r0/contact/create_contact.rs b/src/r0/contact/create_contact.rs deleted file mode 100644 index 5b246cd4..00000000 --- a/src/r0/contact/create_contact.rs +++ /dev/null @@ -1,39 +0,0 @@ -//! [POST /_matrix/client/r0/account/3pid](https://matrix.org/docs/spec/client_server/r0.4.0.html#post-matrix-client-r0-account-3pid) - -use ruma_api::ruma_api; -use serde::{Deserialize, Serialize}; - -ruma_api! { - metadata { - description: "Adds contact information to the user's account.", - method: POST, - name: "create_contact", - path: "/_matrix/client/r0/account/3pid", - rate_limited: false, - requires_authentication: true, - } - - request { - /// Whether the homeserver should also bind this third party identifier to the account's - /// Matrix ID with the passed identity server. - /// - /// Default to `false` if not supplied. - #[serde(skip_serializing_if = "Option::is_none")] - pub bind: Option, - /// The third party credentials to associate with the account. - pub three_pid_creds: ThreePidCredentials, - } - - response {} -} - -/// The third party credentials to associate with the account. -#[derive(Clone, Debug, Deserialize, Serialize)] -pub struct ThreePidCredentials { - /// The client secret used in the session with the identity server. - pub client_secret: String, - /// The identity server to use. - pub id_server: String, - /// The session identifier given by the identity server. - pub sid: String, -}