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:
parent
65cb085f30
commit
649da9c5b8
@ -75,8 +75,6 @@ impl Redact for OriginalRoomRedactionEvent {
|
||||
) -> Self::Redacted {
|
||||
RedactedRoomRedactionEvent {
|
||||
content: self.content.redact(version),
|
||||
// There is no released room version where this isn't redacted yet
|
||||
redacts: None,
|
||||
event_id: self.event_id,
|
||||
sender: self.sender,
|
||||
origin_server_ts: self.origin_server_ts,
|
||||
@ -93,9 +91,6 @@ pub struct RedactedRoomRedactionEvent {
|
||||
/// Data specific to the event type.
|
||||
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.
|
||||
pub event_id: Box<EventId>,
|
||||
|
||||
@ -145,8 +140,6 @@ impl Redact for OriginalSyncRoomRedactionEvent {
|
||||
) -> Self::Redacted {
|
||||
RedactedSyncRoomRedactionEvent {
|
||||
content: self.content.redact(version),
|
||||
// There is no released room version where this isn't redacted yet
|
||||
redacts: None,
|
||||
event_id: self.event_id,
|
||||
sender: self.sender,
|
||||
origin_server_ts: self.origin_server_ts,
|
||||
@ -162,9 +155,6 @@ pub struct RedactedSyncRoomRedactionEvent {
|
||||
/// Data specific to the event type.
|
||||
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.
|
||||
pub event_id: Box<EventId>,
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user