diff options
author | kegsay <kegan@matrix.org> | 2023-04-20 19:07:31 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-04-20 19:07:31 +0100 |
commit | 71eeccf34a2ea4434c315c19778d80a7b2469270 (patch) | |
tree | e6d5bd8f91a9a90b2b076f842c183bae332c6311 /userapi | |
parent | 72285b2659a31ebd52c91799c17105d81d996f40 (diff) |
refactor: funnel event creation through room versions (#3060)
In preparation of interfacing up the room version value.
Diffstat (limited to 'userapi')
-rw-r--r-- | userapi/consumers/roomserver_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/userapi/consumers/roomserver_test.go b/userapi/consumers/roomserver_test.go index e233bc66..2ece0d58 100644 --- a/userapi/consumers/roomserver_test.go +++ b/userapi/consumers/roomserver_test.go @@ -36,7 +36,7 @@ func mustCreateDatabase(t *testing.T, dbType test.DBType) (storage.UserDatabase, func mustCreateEvent(t *testing.T, content string) *gomatrixserverlib.HeaderedEvent { t.Helper() - ev, err := gomatrixserverlib.NewEventFromTrustedJSON([]byte(content), false, gomatrixserverlib.RoomVersionV10) + ev, err := gomatrixserverlib.RoomVersionV10.NewEventFromTrustedJSON([]byte(content), false) if err != nil { t.Fatalf("failed to create event: %v", err) } |