events: Allow internal use of deprecated fields

This commit is contained in:
Kévin Commaille 2022-05-24 14:56:43 +02:00 committed by Kévin Commaille
parent 6f7bb9aa1d
commit 87346e1c9b
2 changed files with 2 additions and 0 deletions

View File

@ -305,6 +305,7 @@ impl From<MegolmV1AesSha2ContentInit> for MegolmV1AesSha2Content {
/// Creates a new `MegolmV1AesSha2Content` from the given init struct.
fn from(init: MegolmV1AesSha2ContentInit) -> Self {
let MegolmV1AesSha2ContentInit { ciphertext, sender_key, device_id, session_id } = init;
#[allow(deprecated)]
Self { ciphertext, sender_key, device_id, session_id }
}
}

View File

@ -100,6 +100,7 @@ impl RequestedKeyInfo {
sender_key: String,
session_id: String,
) -> Self {
#[allow(deprecated)]
Self { algorithm, room_id, sender_key, session_id }
}
}