From 4f8f762583cdc21e6092901e7075f1c3b1dec36f Mon Sep 17 00:00:00 2001 From: Travis Ralston Date: Fri, 6 Jul 2018 21:26:17 -0600 Subject: [PATCH] Expose `unsigned` on events Signed-off-by: Travis Ralston --- events.go | 1 + 1 file changed, 1 insertion(+) diff --git a/events.go b/events.go index 61f7537..1a82803 100644 --- a/events.go +++ b/events.go @@ -15,6 +15,7 @@ type Event struct { 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 + Unsigned map[string]interface{} `json:"unsigned"` // The unsigned portions of the event, such as age and prev_content } // Body returns the value of the "body" key in the event content if it is