Merge branch 'main' into invite

This commit is contained in:
Devon Hudson 2023-07-04 21:28:00 -06:00
commit 7a698caa20
No known key found for this signature in database
GPG key ID: CD06B18E77F6A628

View file

@ -282,17 +282,17 @@ func (d *Database) addState(
var found bool var found bool
for i := len(state) - 1; i >= 0; i-- { for i := len(state) - 1; i >= 0; i-- {
found = false found = false
blocksLoop:
for _, events := range blocks { for _, events := range blocks {
for _, event := range events { for _, event := range events {
if state[i].EventNID == event { if state[i].EventNID == event {
found = true found = true
break break blocksLoop
} }
} }
} }
if found { if found {
state = append(state[:i], state[i+1:]...) state = append(state[:i], state[i+1:]...)
i--
} }
} }
} }