diff --git a/crates/matrix-sdk-base/src/media/mod.rs b/crates/matrix-sdk-base/src/media/mod.rs index c8b25ad6f..b045b4e9e 100644 --- a/crates/matrix-sdk-base/src/media/mod.rs +++ b/crates/matrix-sdk-base/src/media/mod.rs @@ -12,7 +12,7 @@ // See the License for the specific language governing permissions and // limitations under the License. -//! Media store and common types for [media content](https://matrix.org/docs/spec/client_server/r0.6.1#id66). +//! Media store and common types for [media content](https://spec.matrix.org/latest/client-server-api/#content-repository). pub mod store; diff --git a/crates/matrix-sdk-base/src/room/display_name.rs b/crates/matrix-sdk-base/src/room/display_name.rs index 5401cee4e..1c782f84c 100644 --- a/crates/matrix-sdk-base/src/room/display_name.rs +++ b/crates/matrix-sdk-base/src/room/display_name.rs @@ -44,7 +44,7 @@ impl Room { /// If you need a variant that's sync (but with the drawback that it returns /// an `Option`), consider using [`Room::cached_display_name`]. /// - /// [spec]: + /// [spec]: pub async fn display_name(&self) -> StoreResult { if let Some(name) = self.cached_display_name() { Ok(name) @@ -99,7 +99,7 @@ impl Room { /// or [`Room::display_name`] (async, always returns a value), which should /// be preferred in general. /// - /// [spec]: + /// [spec]: pub(crate) async fn compute_display_name(&self) -> StoreResult { enum DisplayNameOrSummary { Summary(RoomSummary), @@ -407,7 +407,7 @@ pub struct RoomHero { const NUM_HEROES: usize = 5; /// The name of the room, either from the metadata or calculated -/// according to [matrix specification](https://matrix.org/docs/spec/client_server/latest#calculating-the-display-name-for-a-room) +/// according to [matrix specification](https://spec.matrix.org/latest/client-server-api/#calculating-the-display-name-for-a-room) #[derive(Clone, Debug, Eq, PartialEq, Serialize, Deserialize)] pub enum RoomDisplayName { /// The room has been named explicitly as diff --git a/crates/matrix-sdk-crypto/src/lib.rs b/crates/matrix-sdk-crypto/src/lib.rs index b253c8700..cf1b06362 100644 --- a/crates/matrix-sdk-crypto/src/lib.rs +++ b/crates/matrix-sdk-crypto/src/lib.rs @@ -1097,7 +1097,7 @@ pub enum RoomEventDecryptionResult { /// [end-to-end-encryption]: https://en.wikipedia.org/wiki/End-to-end_encryption /// [homeserver]: https://spec.matrix.org/unstable/#architecture /// [key-agreement protocol]: https://en.wikipedia.org/wiki/Key-agreement_protocol -/// [client-server specification]: https://matrix.org/docs/spec/client_server/ +/// [client-server specification]: https://spec.matrix.org/latest/client-server-api /// [forward secrecy]: https://en.wikipedia.org/wiki/Forward_secrecy /// [replay attacks]: https://en.wikipedia.org/wiki/Replay_attack /// [Tracking the device list for a user]: https://spec.matrix.org/unstable/client-server-api/#tracking-the-device-list-for-a-user diff --git a/crates/matrix-sdk-crypto/src/verification/sas/helpers.rs b/crates/matrix-sdk-crypto/src/verification/sas/helpers.rs index 7c7c788ca..62ecc062c 100644 --- a/crates/matrix-sdk-crypto/src/verification/sas/helpers.rs +++ b/crates/matrix-sdk-crypto/src/verification/sas/helpers.rs @@ -79,7 +79,7 @@ pub fn calculate_commitment(public_key: Curve25519PublicKey, content: &StartCont /// The spec defines 64 unique emojis, this function panics if the index is /// bigger than 63. /// -/// [spec]: https://matrix.org/docs/spec/client_server/latest#sas-method-emoji +/// [spec]: https://spec.matrix.org/latest/client-server-api/#sas-method-emoji fn emoji_from_index(index: u8) -> Emoji { /* This list was generated from the data in the spec [1] with the following command: diff --git a/crates/matrix-sdk/README.md b/crates/matrix-sdk/README.md index 5d1802af9..dfeb942f4 100644 --- a/crates/matrix-sdk/README.md +++ b/crates/matrix-sdk/README.md @@ -2,7 +2,7 @@ A high-level, batteries-included [Matrix](https://matrix.org/) client library written in Rust. This crate seeks to be a general-purpose library for writing software using the -Matrix [Client-Server API](https://matrix.org/docs/spec/client_server/latest) +Matrix [Client-Server API](https://spec.matrix.org/latest/client-server-api/) to communicate with a Matrix homeserver. If you're writing a typical Matrix client or bot, this is likely the crate you need. diff --git a/examples/get_profiles/src/main.rs b/examples/get_profiles/src/main.rs index 7ab1de03c..3ff2c41e6 100644 --- a/examples/get_profiles/src/main.rs +++ b/examples/get_profiles/src/main.rs @@ -17,7 +17,7 @@ struct UserProfile { } /// This function calls the GET profile endpoint -/// Spec: +/// Spec: /// Ruma: async fn get_profile(client: Client, mxid: &UserId) -> MatrixResult { // First construct the request you want to make