events: Construct EncryptedEventContent from EncryptedEventScheme
This commit is contained in:
parent
db76c22180
commit
24154195a0
@ -48,6 +48,12 @@ impl EncryptedEventContent {
|
||||
}
|
||||
}
|
||||
|
||||
impl From<EncryptedEventScheme> for EncryptedEventContent {
|
||||
fn from(scheme: EncryptedEventScheme) -> Self {
|
||||
Self { scheme, relates_to: None }
|
||||
}
|
||||
}
|
||||
|
||||
/// The to-device version of the payload for the `EncryptedEvent`.
|
||||
pub type EncryptedToDeviceEventContent = EncryptedEventContent;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user