events: Improve deprecation note for fields deprecated by MSC3700
This commit is contained in:
parent
4e4c2b0552
commit
af07bfb8f4
@ -264,11 +264,17 @@ pub struct MegolmV1AesSha2Content {
|
|||||||
pub ciphertext: String,
|
pub ciphertext: String,
|
||||||
|
|
||||||
/// The Curve25519 key of the sender.
|
/// 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,
|
pub sender_key: String,
|
||||||
|
|
||||||
/// The ID of the sending device.
|
/// 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,
|
pub device_id: OwnedDeviceId,
|
||||||
|
|
||||||
/// The ID of the session used to encrypt the message.
|
/// The ID of the session used to encrypt the message.
|
||||||
|
@ -81,7 +81,10 @@ pub struct RequestedKeyInfo {
|
|||||||
pub room_id: OwnedRoomId,
|
pub room_id: OwnedRoomId,
|
||||||
|
|
||||||
/// The Curve25519 key of the device which initiated the session originally.
|
/// 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,
|
pub sender_key: String,
|
||||||
|
|
||||||
/// The ID of the session that the key is for.
|
/// The ID of the session that the key is for.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user