diff options
author | Neil Alexander <neilalexander@users.noreply.github.com> | 2020-03-17 18:00:10 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-17 18:00:10 +0000 |
commit | c2bd0b97b34c9040325bf31c5c4a2a06579239d9 (patch) | |
tree | 45af6cf66af901b1a285fb8be6f7db278bea4dcd /roomserver/storage/interface.go | |
parent | 1467cc10d8bd40b9ea85bc4f0aa4644b16cb37bb (diff) |
Get room versions from database (#918)
* Retrieve room version where known in roomserver
* Get room versions in alias code
* Increase gocyclothreshold to 13, since we hit that number a lot
* Remove gocyclo nolint from StoreEvent
* Update interface to get room version from room ID instead of NID
* Remove new API
* Fixed this query for SQLite but not for Postgres
Diffstat (limited to 'roomserver/storage/interface.go')
-rw-r--r-- | roomserver/storage/interface.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roomserver/storage/interface.go b/roomserver/storage/interface.go index 7f32b53f..20db7ef7 100644 --- a/roomserver/storage/interface.go +++ b/roomserver/storage/interface.go @@ -45,5 +45,5 @@ type Database interface { GetMembership(ctx context.Context, roomNID types.RoomNID, requestSenderUserID string) (membershipEventNID types.EventNID, stillInRoom bool, err error) GetMembershipEventNIDsForRoom(ctx context.Context, roomNID types.RoomNID, joinOnly bool) ([]types.EventNID, error) EventsFromIDs(ctx context.Context, eventIDs []string) ([]types.Event, error) - GetRoomVersionForRoom(ctx context.Context, roomNID types.RoomNID) (gomatrixserverlib.RoomVersion, error) + GetRoomVersionForRoom(ctx context.Context, roomID string) (gomatrixserverlib.RoomVersion, error) } |