events: Remove redacts field from redacted redaction events

Cleaning up redaction events in the spec does not seem to be planned for
the near future.
This commit is contained in:
Jonas Platte 2022-04-06 14:24:13 +02:00 committed by Jonas Platte
parent 65cb085f30
commit 649da9c5b8

View File

@ -75,8 +75,6 @@ impl Redact for OriginalRoomRedactionEvent {
) -> Self::Redacted { ) -> Self::Redacted {
RedactedRoomRedactionEvent { RedactedRoomRedactionEvent {
content: self.content.redact(version), content: self.content.redact(version),
// There is no released room version where this isn't redacted yet
redacts: None,
event_id: self.event_id, event_id: self.event_id,
sender: self.sender, sender: self.sender,
origin_server_ts: self.origin_server_ts, origin_server_ts: self.origin_server_ts,
@ -93,9 +91,6 @@ pub struct RedactedRoomRedactionEvent {
/// Data specific to the event type. /// Data specific to the event type.
pub content: RedactedRoomRedactionEventContent, pub content: RedactedRoomRedactionEventContent,
/// The ID of the event that was redacted.
pub redacts: Option<Box<EventId>>,
/// The globally unique event identifier for the user who sent the event. /// The globally unique event identifier for the user who sent the event.
pub event_id: Box<EventId>, pub event_id: Box<EventId>,
@ -145,8 +140,6 @@ impl Redact for OriginalSyncRoomRedactionEvent {
) -> Self::Redacted { ) -> Self::Redacted {
RedactedSyncRoomRedactionEvent { RedactedSyncRoomRedactionEvent {
content: self.content.redact(version), content: self.content.redact(version),
// There is no released room version where this isn't redacted yet
redacts: None,
event_id: self.event_id, event_id: self.event_id,
sender: self.sender, sender: self.sender,
origin_server_ts: self.origin_server_ts, origin_server_ts: self.origin_server_ts,
@ -162,9 +155,6 @@ pub struct RedactedSyncRoomRedactionEvent {
/// Data specific to the event type. /// Data specific to the event type.
pub content: RedactedRoomRedactionEventContent, pub content: RedactedRoomRedactionEventContent,
/// The ID of the event that was redacted.
pub redacts: Option<Box<EventId>>,
/// The globally unique event identifier for the user who sent the event. /// The globally unique event identifier for the user who sent the event.
pub event_id: Box<EventId>, pub event_id: Box<EventId>,