events: Allow internal use of deprecated fields
This commit is contained in:
parent
6f7bb9aa1d
commit
87346e1c9b
@ -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 }
|
||||
}
|
||||
}
|
||||
|
@ -100,6 +100,7 @@ impl RequestedKeyInfo {
|
||||
sender_key: String,
|
||||
session_id: String,
|
||||
) -> Self {
|
||||
#[allow(deprecated)]
|
||||
Self { algorithm, room_id, sender_key, session_id }
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user