Add missing prev_state field

This commit is contained in:
Andrew Morgan 2018-06-28 16:57:52 +01:00
parent af08eea46d
commit 75b86d83b0

View file

@ -61,6 +61,8 @@ type EventBuilder struct {
StateKey *string `json:"state_key,omitempty"`
// The events that immediately preceded this event in the room history.
PrevEvents []EventReference `json:"prev_events"`
// TODO: A deprecated, empty but yet still expected key.
PrevState string `json:"prev_state"`
// The events needed to authenticate this event.
AuthEvents []EventReference `json:"auth_events"`
// The event ID of the event being redacted if this event is a "m.room.redaction".