From 5d396e4795f76dca0f5f2cdfaba519d5e516fc1d Mon Sep 17 00:00:00 2001 From: Andy Balaam Date: Fri, 14 Nov 2025 11:07:08 +0000 Subject: [PATCH] crypto: Refer to MSC4362 when we are talking about encrypted state --- crates/matrix-sdk/src/room/futures.rs | 2 +- crates/matrix-sdk/src/room/mod.rs | 12 ++++++------ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/crates/matrix-sdk/src/room/futures.rs b/crates/matrix-sdk/src/room/futures.rs index 4d681abfb..6d05810aa 100644 --- a/crates/matrix-sdk/src/room/futures.rs +++ b/crates/matrix-sdk/src/room/futures.rs @@ -363,7 +363,7 @@ impl<'a> SendRawStateEvent<'a> { /// 1. Whether the room supports encrypted state events, by inspecting the /// room's encryption state. /// 2. Whether the event type is considered "critical" or excluded from - /// encryption under MSC3414. + /// encryption under MSC4362. /// /// # Returns /// diff --git a/crates/matrix-sdk/src/room/mod.rs b/crates/matrix-sdk/src/room/mod.rs index fd70abfae..98435f5b9 100644 --- a/crates/matrix-sdk/src/room/mod.rs +++ b/crates/matrix-sdk/src/room/mod.rs @@ -2893,7 +2893,7 @@ impl Room { /// If the experimental state event encryption feature is enabled, this /// method will transparently encrypt the event if this room is /// encrypted (except if the event type is considered critical for the room - /// to function, as outlined in [MSC3414][msc3414]). + /// to function, as outlined in [MSC4362][msc4362]). /// /// Returns the parsed response from the server. /// @@ -2934,7 +2934,7 @@ impl Room { /// # anyhow::Ok(()) }; /// ``` /// - /// [msc3414]: https://github.com/matrix-org/matrix-spec-proposals/blob/travis/msc/encrypted-state/proposals/3414-encrypted-state.md + /// [msc4362]: https://github.com/matrix-org/matrix-spec-proposals/blob/travis/msc/encrypted-state/proposals/4362-encrypted-state.md #[cfg(feature = "experimental-encrypted-state-events")] #[instrument(skip_all)] pub fn send_state_event<'a>( @@ -3008,7 +3008,7 @@ impl Room { /// If the experimental state event encryption feature is enabled, this /// method will transparently encrypt the event if this room is /// encrypted (except if the event type is considered critical for the room - /// to function, as outlined in [MSC3414][msc3414]). + /// to function, as outlined in [MSC4362][msc4362]). /// /// Returns the parsed response from the server. /// @@ -3049,7 +3049,7 @@ impl Room { /// # anyhow::Ok(()) }; /// ``` /// - /// [msc3414]: https://github.com/matrix-org/matrix-spec-proposals/blob/travis/msc/encrypted-state/proposals/3414-encrypted-state.md + /// [msc4362]: https://github.com/matrix-org/matrix-spec-proposals/pull/4362 #[cfg(feature = "experimental-encrypted-state-events")] pub fn send_state_event_for_key<'a, C, K>( &'a self, @@ -3123,7 +3123,7 @@ impl Room { /// If the experimental state event encryption feature is enabled, this /// method will transparently encrypt the event if this room is /// encrypted (except if the event type is considered critical for the room - /// to function, as outlined in [MSC3414][msc3414]). + /// to function, as outlined in [MSC4362][msc4362]). /// /// Returns the parsed response from the server. /// @@ -3158,7 +3158,7 @@ impl Room { /// # anyhow::Ok(()) }; /// ``` /// - /// [msc3414]: https://github.com/matrix-org/matrix-spec-proposals/blob/travis/msc/encrypted-state/proposals/3414-encrypted-state.md + /// [msc4362]: https://github.com/matrix-org/matrix-spec-proposals/pull/4362 #[cfg(feature = "experimental-encrypted-state-events")] #[instrument(skip_all)] pub fn send_state_event_raw<'a>(