mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-07 14:13:11 -06:00
Fix bug
This commit is contained in:
parent
a1c5c1b997
commit
1a39c20a35
|
|
@ -240,7 +240,7 @@ func (u *latestEventsUpdater) latestState() error {
|
||||||
util.Unique(combinedExtremities)
|
util.Unique(combinedExtremities)
|
||||||
latestStateAtEvents := make([]types.StateAtEvent, len(combinedExtremities))
|
latestStateAtEvents := make([]types.StateAtEvent, len(combinedExtremities))
|
||||||
for i := range combinedExtremities {
|
for i := range combinedExtremities {
|
||||||
latestStateAtEvents[i] = u.latest[i].StateAtEvent
|
latestStateAtEvents[i] = combinedExtremities[i].StateAtEvent
|
||||||
}
|
}
|
||||||
|
|
||||||
// Takes the NIDs of the latest events and creates a state snapshot
|
// Takes the NIDs of the latest events and creates a state snapshot
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue