mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-04 20:53:09 -06:00
Feed existing state into state res when calculating state from new extremities
This commit is contained in:
parent
fc670f03a2
commit
d6d61c3707
|
|
@ -237,7 +237,7 @@ func (u *latestEventsUpdater) latestState() error {
|
|||
// include the new event from the input path, depending on whether
|
||||
// it is a forward extremity or not.
|
||||
latestStateAtEvents := make([]types.StateAtEvent, len(u.latest))
|
||||
for i := range u.latest {
|
||||
for i := range append(u.latest, u.oldLatest...) {
|
||||
latestStateAtEvents[i] = u.latest[i].StateAtEvent
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue