events: Update definition of DummyToDeviceEventContent

Make it a unit struct instead of a struct struct without fields.
This commit is contained in:
Jonas Platte 2021-05-16 23:23:19 +02:00
parent aba58909aa
commit d03a7363e6
No known key found for this signature in database
GPG Key ID: 7D261D771D915378

View File

@ -12,8 +12,8 @@ use serde::{Deserialize, Serialize};
/// The event does not have any content associated with it. The sending client is expected to /// The event does not have any content associated with it. The sending client is expected to
/// send a key share request shortly after this message, causing the receiving client to process /// send a key share request shortly after this message, causing the receiving client to process
/// this *m.dummy* event as the most recent event and using the keyshare request to set up the /// this *m.dummy* event as the most recent event and using the keyshare request to set up the
/// session. The keyshare request and *m.dummy* combination should result in the original /// session. The keyshare request and *m.dummy* combination should result in the original sending
/// sending client receiving keys over the newly established session. /// client receiving keys over the newly established session.
#[derive(Clone, Debug, Deserialize, Serialize, EventContent)] #[derive(Clone, Debug, Deserialize, Serialize, EventContent)]
#[ruma_event(type = "m.dummy", kind = ToDevice)] #[ruma_event(type = "m.dummy", kind = ToDevice)]
pub struct DummyToDeviceEventContent {} pub struct DummyToDeviceEventContent;