diff options
author | devonh <devon.dmytro@gmail.com> | 2023-05-08 19:25:44 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-05-08 19:25:44 +0000 |
commit | a49c9f01e227aeb12aa2f27d5bf1915453c23a3b (patch) | |
tree | e8de0a2dcb4f5f57094dd9024cc6b94793a080ae /roomserver/roomserver_test.go | |
parent | 2b34f88fde6b3aa633c8f23ff424a5db4951efd3 (diff) |
Only require room version instead of room info for db.Events() (#3079)
This reduces the API requirements for the Events database to align with
what is actually required.
Diffstat (limited to 'roomserver/roomserver_test.go')
-rw-r--r-- | roomserver/roomserver_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roomserver/roomserver_test.go b/roomserver/roomserver_test.go index c0f3e12d..d19ebebe 100644 --- a/roomserver/roomserver_test.go +++ b/roomserver/roomserver_test.go @@ -571,7 +571,7 @@ func TestRedaction(t *testing.T) { if ev.Type() == spec.MRoomRedaction { nids, err := db.EventNIDs(ctx, []string{ev.Redacts()}) assert.NoError(t, err) - evs, err := db.Events(ctx, roomInfo, []types.EventNID{nids[ev.Redacts()].EventNID}) + evs, err := db.Events(ctx, roomInfo.RoomVersion, []types.EventNID{nids[ev.Redacts()].EventNID}) assert.NoError(t, err) assert.Equal(t, 1, len(evs)) assert.Equal(t, tc.wantRedacted, evs[0].Redacted()) |