Skip to content
This repository has been archived by the owner on Nov 14, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' into invite
Browse files Browse the repository at this point in the history
  • Loading branch information
devonh committed Jul 5, 2023
2 parents 05e5837 + 4c3a526 commit 7a698ca
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions roomserver/storage/shared/storage.go
Original file line number Diff line number Diff line change
Expand Up @@ -282,17 +282,17 @@ func (d *Database) addState(
var found bool
for i := len(state) - 1; i >= 0; i-- {
found = false
blocksLoop:
for _, events := range blocks {
for _, event := range events {
if state[i].EventNID == event {
found = true
break
break blocksLoop
}
}
}
if found {
state = append(state[:i], state[i+1:]...)
i--
}
}
}
Expand Down

0 comments on commit 7a698ca

Please sign in to comment.