events: Remove ToDevice kind on RoomEncryptedEventContent

There is ToDeviceRoomEncryptedEventContent.
This commit is contained in:
Kévin Commaille 2022-10-01 11:57:32 +02:00 committed by Kévin Commaille
parent c141b7deb5
commit c7caf65f65

View File

@ -16,7 +16,7 @@ mod relation_serde;
/// The content of an `m.room.encrypted` event. /// The content of an `m.room.encrypted` event.
#[derive(Clone, Debug, Deserialize, Serialize, EventContent)] #[derive(Clone, Debug, Deserialize, Serialize, EventContent)]
#[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)] #[cfg_attr(not(feature = "unstable-exhaustive-types"), non_exhaustive)]
#[ruma_event(type = "m.room.encrypted", kind = MessageLike, kind = ToDevice)] #[ruma_event(type = "m.room.encrypted", kind = MessageLike)]
pub struct RoomEncryptedEventContent { pub struct RoomEncryptedEventContent {
/// Algorithm-specific fields. /// Algorithm-specific fields.
#[serde(flatten)] #[serde(flatten)]