From eb6a57bae949723df0d4947a03d4136a1f64b784 Mon Sep 17 00:00:00 2001 From: Wim Date: Fri, 11 May 2018 17:52:41 +0200 Subject: [PATCH] Add Redacts key (m.room.redaction event) (#43) --- events.go | 1 + 1 file changed, 1 insertion(+) diff --git a/events.go b/events.go index 7427740..61f7537 100644 --- a/events.go +++ b/events.go @@ -14,6 +14,7 @@ type Event struct { ID string `json:"event_id"` // The unique ID of this event RoomID string `json:"room_id"` // The room the event was sent to. May be nil (e.g. for presence) Content map[string]interface{} `json:"content"` // The JSON content of the event. + Redacts string `json:"redacts,omitempty"` // The event ID that was redacted if a m.room.redaction event } // Body returns the value of the "body" key in the event content if it is