events: Improve deprecation note for fields deprecated by MSC3700

This commit is contained in:
Jonas Platte 2022-05-11 14:06:01 +02:00
parent 4e4c2b0552
commit af07bfb8f4
No known key found for this signature in database
GPG Key ID: AAA7A61F696C3E0C
2 changed files with 12 additions and 3 deletions

View File

@ -264,11 +264,17 @@ pub struct MegolmV1AesSha2Content {
pub ciphertext: String,
/// The Curve25519 key of the sender.
#[cfg_attr(feature = "unstable-msc3700", deprecated = "as of Matrix v1.3")]
#[cfg_attr(
feature = "unstable-msc3700",
deprecated = "this field still needs to be sent but should not be used when received"
)]
pub sender_key: String,
/// The ID of the sending device.
#[cfg_attr(feature = "unstable-msc3700", deprecated = "as of Matrix v1.3")]
#[cfg_attr(
feature = "unstable-msc3700",
deprecated = "this field still needs to be sent but should not be used when received"
)]
pub device_id: OwnedDeviceId,
/// The ID of the session used to encrypt the message.

View File

@ -81,7 +81,10 @@ pub struct RequestedKeyInfo {
pub room_id: OwnedRoomId,
/// The Curve25519 key of the device which initiated the session originally.
#[cfg_attr(feature = "unstable-msc3700", deprecated = "as of Matrix v1.3")]
#[cfg_attr(
feature = "unstable-msc3700",
deprecated = "this field still needs to be sent but should not be used when received"
)]
pub sender_key: String,
/// The ID of the session that the key is for.