diff --git a/cmd/resolve-state/main.go b/cmd/resolve-state/main.go index 5cc8af9a9..f8d888b71 100644 --- a/cmd/resolve-state/main.go +++ b/cmd/resolve-state/main.go @@ -330,6 +330,14 @@ func main() { fmt.Printf("Error: %s", err) return } + + for _, latestEvent := range roomUpdater.LatestEvents() { + if err = roomUpdater.SetState(ctx, latestEvent.EventNID, newSnapshotNID); err != nil { + fmt.Printf("Error: %s", err) + return + } + } + succeeded = true fmt.Printf("Successfully set new snapshot NID %d containing %d state events", newSnapshotNID, len(stateEntriesResolved))