diff options
author | Wim <wim@42.be> | 2020-02-09 23:49:17 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-02-09 23:49:17 +0100 |
commit | 23083f3ae0ffd28ca4094c75c90ba45fc57bd523 (patch) | |
tree | ef2dcfd78de408fc9349e18e08d480211c393bb3 /vendor/github.com/matterbridge/gomatrix/events.go | |
parent | 1985873494ddcfb73ec04525ebc1b7ba0b1f428d (diff) | |
download | matterbridge-msglm-23083f3ae0ffd28ca4094c75c90ba45fc57bd523.tar.gz matterbridge-msglm-23083f3ae0ffd28ca4094c75c90ba45fc57bd523.tar.bz2 matterbridge-msglm-23083f3ae0ffd28ca4094c75c90ba45fc57bd523.zip |
Rebase gomatrix vendor with upstream (#1006)
Diffstat (limited to 'vendor/github.com/matterbridge/gomatrix/events.go')
-rw-r--r-- | vendor/github.com/matterbridge/gomatrix/events.go | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/vendor/github.com/matterbridge/gomatrix/events.go b/vendor/github.com/matterbridge/gomatrix/events.go index d3ee7491..2ebbedca 100644 --- a/vendor/github.com/matterbridge/gomatrix/events.go +++ b/vendor/github.com/matterbridge/gomatrix/events.go @@ -7,15 +7,16 @@ import ( // Event represents a single Matrix event. type Event struct { - StateKey *string `json:"state_key,omitempty"` // The state key for the event. Only present on State Events. - Sender string `json:"sender"` // The user ID of the sender of the event - Type string `json:"type"` // The event type - Timestamp int64 `json:"origin_server_ts"` // The unix timestamp when this message was sent by the origin server - 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 - Unsigned map[string]interface{} `json:"unsigned"` // The unsigned portions of the event, such as age and prev_content + StateKey *string `json:"state_key,omitempty"` // The state key for the event. Only present on State Events. + Sender string `json:"sender"` // The user ID of the sender of the event + Type string `json:"type"` // The event type + Timestamp int64 `json:"origin_server_ts"` // The unix timestamp when this message was sent by the origin server + 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) + 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 + Content map[string]interface{} `json:"content"` // The JSON content of the event. + PrevContent map[string]interface{} `json:"prev_content,omitempty"` // The JSON prev_content of the event. } // Body returns the value of the "body" key in the event content if it is |