Limit filter to limit/2 for before/after events on /context (#3332)

Part of https://github.com/matrix-org/dendrite/issues/3224
This commit is contained in:
Till 2024-02-20 08:38:51 +01:00 committed by GitHub
parent ecb7b383e9
commit 8f944f6434
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 1 deletions

View file

@ -1136,7 +1136,7 @@ func testContext(t *testing.T, dbType test.DBType) {
},
{
name: "events are not limited",
wantBeforeLength: 7,
wantBeforeLength: 5,
},
{
name: "all events are limited",