mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-08-02 22:22:46 +00:00
Fix empty state snapshots
This commit is contained in:
parent
a799847070
commit
b7cf702a14
4 changed files with 5 additions and 9 deletions
|
@ -99,6 +99,7 @@ func (s *stateStatements) BulkSelectState(
|
|||
if err = rows.Scan(&stateNID, &eventNIDs); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
results[types.StateSnapshotNID(stateNID)] = []types.EventNID{}
|
||||
for _, id := range eventNIDs {
|
||||
results[types.StateSnapshotNID(stateNID)] = append(
|
||||
results[types.StateSnapshotNID(stateNID)],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue