diff --git a/crates/ruma-events/src/room/encrypted.rs b/crates/ruma-events/src/room/encrypted.rs index 4b50d4e7..205e2837 100644 --- a/crates/ruma-events/src/room/encrypted.rs +++ b/crates/ruma-events/src/room/encrypted.rs @@ -48,6 +48,12 @@ impl EncryptedEventContent { } } +impl From 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;