mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-14 10:23:46 -06:00
Renamed key for better understandability
This commit is contained in:
parent
225f671a93
commit
91fa5d6a12
|
|
@ -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)
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue