Renamed key for better understandability

This commit is contained in:
Brendan Abolivier 2017-09-21 19:06:57 +02:00
parent 225f671a93
commit 91fa5d6a12
No known key found for this signature in database
GPG key ID: 8EF1500759F70623
2 changed files with 6 additions and 6 deletions

View file

@ -262,9 +262,9 @@ func (s *OutputRoomEvent) updateStateEvent(event gomatrixserverlib.Event) (gomat
} }
prev := types.PrevEventRef{ prev := types.PrevEventRef{
PrevContent: prevEvent.Content(), PrevContent: prevEvent.Content(),
PrevID: prevEvent.EventID(), ReplacesState: prevEvent.EventID(),
PrevSender: prevEvent.Sender(), PrevSender: prevEvent.Sender(),
} }
return event.SetUnsigned(prev) return event.SetUnsigned(prev)

View file

@ -31,9 +31,9 @@ func (sp StreamPosition) String() string {
// PrevEventRef represents a reference to a previous event in a state event upgrade // PrevEventRef represents a reference to a previous event in a state event upgrade
type PrevEventRef struct { type PrevEventRef struct {
PrevContent json.RawMessage `json:"prev_content"` PrevContent json.RawMessage `json:"prev_content"`
PrevID string `json:"replaces_state"` ReplacesState string `json:"replaces_state"`
PrevSender string `json:"prev_sender"` PrevSender string `json:"prev_sender"`
} }
// Response represents a /sync API response. See https://matrix.org/docs/spec/client_server/r0.2.0.html#get-matrix-client-r0-sync // Response represents a /sync API response. See https://matrix.org/docs/spec/client_server/r0.2.0.html#get-matrix-client-r0-sync