aboutsummaryrefslogtreecommitdiff
path: root/roomserver/storage/shared/storage.go
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2022-08-18 17:06:13 +0100
committerGitHub <noreply@github.com>2022-08-18 17:06:13 +0100
commit6b48ce0d757279965a6deb77a1ca8d72c15d4bff (patch)
treefc1316eed735d2b3b6b11dbf5aa1e8b027398ad9 /roomserver/storage/shared/storage.go
parent606cb6750639b1e680cbe1dd1b8026ac1536d642 (diff)
State handling tweaks (#2652)
This tweaks how rejected events are handled in room state and also to not apply checks we can't complete to outliers.
Diffstat (limited to 'roomserver/storage/shared/storage.go')
-rw-r--r--roomserver/storage/shared/storage.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/roomserver/storage/shared/storage.go b/roomserver/storage/shared/storage.go
index 4f92adf1..f35592a7 100644
--- a/roomserver/storage/shared/storage.go
+++ b/roomserver/storage/shared/storage.go
@@ -113,9 +113,9 @@ func (d *Database) eventStateKeyNIDs(
}
func (d *Database) StateEntriesForEventIDs(
- ctx context.Context, eventIDs []string,
+ ctx context.Context, eventIDs []string, excludeRejected bool,
) ([]types.StateEntry, error) {
- return d.EventsTable.BulkSelectStateEventByID(ctx, nil, eventIDs)
+ return d.EventsTable.BulkSelectStateEventByID(ctx, nil, eventIDs, excludeRejected)
}
func (d *Database) StateEntriesForTuples(