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)
|
fmt.Printf("Error: %s", err)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
for _, latestEvent := range roomUpdater.LatestEvents() {
|
||||||
|
if err = roomUpdater.SetState(ctx, latestEvent.EventNID, newSnapshotNID); err != nil {
|
||||||
|
fmt.Printf("Error: %s", err)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
succeeded = true
|
succeeded = true
|
||||||
|
|
||||||
fmt.Printf("Successfully set new snapshot NID %d containing %d state events", newSnapshotNID, len(stateEntriesResolved))
|
fmt.Printf("Successfully set new snapshot NID %d containing %d state events", newSnapshotNID, len(stateEntriesResolved))
|
||||||
|
|
Loading…
Reference in a new issue