mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-31 18:53:10 -06:00
Set stateIDs length correctly or else the roomserver thinks there are missing events when there aren't
This commit is contained in:
parent
f5b87bde01
commit
9889429ae8
|
|
@ -149,7 +149,7 @@ func (t *missingStateReq) processEventWithMissingState(
|
||||||
}
|
}
|
||||||
t.hadEventsMutex.Unlock()
|
t.hadEventsMutex.Unlock()
|
||||||
|
|
||||||
stateIDs := make([]string, len(resolvedState.StateEvents))
|
stateIDs := make([]string, 0, len(resolvedState.StateEvents))
|
||||||
for _, event := range resolvedState.StateEvents {
|
for _, event := range resolvedState.StateEvents {
|
||||||
stateIDs = append(stateIDs, event.EventID())
|
stateIDs = append(stateIDs, event.EventID())
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue