diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2020-03-17 11:01:25 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-17 11:01:25 +0000 |
commit | aebf347a79102597a359dcd59bb45593c8352780 (patch) | |
tree | d331c90109878611c0954276dc7a521415c43b9c /roomserver/api/input.go | |
parent | 9f74a8798e26d9482f1964ff79a28acfe61d6dd1 (diff) |
Implement gomatrixserverlib.HeaderedEvent in roomserver Kafka output (#914)
* Use Event.Headered
* Use HeaderedEvent in roomserver kafka output
* Fix syncserver-integration-tests
* Update producers to roomserver inputs
* Update gomatrixserverlib
* Update gomatrixserverlib
* Update gomatrixserverlib
* Update gomatrixserverlib
* Update gomatrixserverlib
* Update gomatrixserverlib
Diffstat (limited to 'roomserver/api/input.go')
-rw-r--r-- | roomserver/api/input.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/roomserver/api/input.go b/roomserver/api/input.go index 9643a927..f07cc022 100644 --- a/roomserver/api/input.go +++ b/roomserver/api/input.go @@ -51,7 +51,7 @@ type InputRoomEvent struct { // This controls how the event is processed. Kind int `json:"kind"` // The event JSON for the event to add. - Event gomatrixserverlib.Event `json:"event"` + Event gomatrixserverlib.HeaderedEvent `json:"event"` // List of state event IDs that authenticate this event. // These are likely derived from the "auth_events" JSON key of the event. // But can be different because the "auth_events" key can be incomplete or wrong. @@ -85,7 +85,7 @@ type TransactionID struct { // the usual context a matrix room event would have. We usually do not have // access to the events needed to check the event auth rules for the invite. type InputInviteEvent struct { - Event gomatrixserverlib.Event `json:"event"` + Event gomatrixserverlib.HeaderedEvent `json:"event"` } // InputRoomEventsRequest is a request to InputRoomEvents |