events: Implement MSC3700

This commit is contained in:
Jonas Platte 2022-05-10 20:52:57 +02:00
parent e1c35b3d7f
commit 4e4c2b0552
No known key found for this signature in database
GPG Key ID: 7D261D771D915378
3 changed files with 4 additions and 0 deletions

View File

@ -43,6 +43,7 @@ unstable-msc3551 = ["unstable-msc1767"]
unstable-msc3552 = ["unstable-msc3551"]
unstable-msc3553 = ["unstable-msc3552"]
unstable-msc3554 = ["unstable-msc1767"]
unstable-msc3700 = []
[dependencies]
base64 = "0.13.0"

View File

@ -264,9 +264,11 @@ pub struct MegolmV1AesSha2Content {
pub ciphertext: String,
/// The Curve25519 key of the sender.
#[cfg_attr(feature = "unstable-msc3700", deprecated = "as of Matrix v1.3")]
pub sender_key: String,
/// The ID of the sending device.
#[cfg_attr(feature = "unstable-msc3700", deprecated = "as of Matrix v1.3")]
pub device_id: OwnedDeviceId,
/// The ID of the session used to encrypt the message.

View File

@ -81,6 +81,7 @@ 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")]
pub sender_key: String,
/// The ID of the session that the key is for.