mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-07 06:53:09 -06:00
Replace current with a new StateEntryList rather than individually setting the fields
This commit is contained in:
parent
dd45ddad0e
commit
83e20be7b2
|
|
@ -198,8 +198,7 @@ func (s *stateBlockStatements) bulkSelectFilteredStateBlockEntries(
|
|||
if current.StateEntries != nil {
|
||||
results = append(results, current)
|
||||
}
|
||||
current.StateBlockNID = types.StateBlockNID(stateBlockNID)
|
||||
current.StateEntries = nil
|
||||
current = types.StateEntryList{StateBlockNID: types.StateBlockNID(stateBlockNID)}
|
||||
}
|
||||
current.StateEntries = append(current.StateEntries, entry)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue