mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-08-03 14:42:47 +00:00
Fix empty state snapshots
This commit is contained in:
parent
a799847070
commit
b7cf702a14
4 changed files with 5 additions and 9 deletions
|
@ -463,7 +463,7 @@ func (v *StateResolution) CalculateAndStoreStateBeforeEvent(
|
|||
// Load the state at the prev events.
|
||||
prevStates, err := v.db.StateAtEventIDs(ctx, event.PrevEventIDs())
|
||||
if err != nil {
|
||||
return 0, err
|
||||
return 0, fmt.Errorf("v.db.StateAtEventIDs: %w", err)
|
||||
}
|
||||
|
||||
// The state before this event will be the state after the events that came before it.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue