mirror of
https://github.com/matrix-org/dendrite.git
synced 2024-11-22 14:21:55 -06:00
Also update the snapshot on the latest events
This commit is contained in:
parent
16b97f9e6c
commit
c1ca1cca45
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue