aboutsummaryrefslogtreecommitdiff
path: root/roomserver/input/authevents.go
diff options
context:
space:
mode:
Diffstat (limited to 'roomserver/input/authevents.go')
-rw-r--r--roomserver/input/authevents.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/roomserver/input/authevents.go b/roomserver/input/authevents.go
index 456a01c7..2c2e14b3 100644
--- a/roomserver/input/authevents.go
+++ b/roomserver/input/authevents.go
@@ -18,6 +18,7 @@ import (
"context"
"sort"
+ "github.com/matrix-org/dendrite/roomserver/storage"
"github.com/matrix-org/dendrite/roomserver/types"
"github.com/matrix-org/gomatrixserverlib"
)
@@ -26,7 +27,7 @@ import (
// Returns the numeric IDs for the auth events.
func checkAuthEvents(
ctx context.Context,
- db RoomEventDatabase,
+ db storage.Database,
event gomatrixserverlib.HeaderedEvent,
authEventIDs []string,
) ([]types.EventNID, error) {
@@ -127,7 +128,7 @@ func (ae *authEvents) lookupEvent(typeNID types.EventTypeNID, stateKey string) *
// loadAuthEvents loads the events needed for authentication from the supplied room state.
func loadAuthEvents(
ctx context.Context,
- db RoomEventDatabase,
+ db storage.Database,
needed gomatrixserverlib.StateNeeded,
state []types.StateEntry,
) (result authEvents, err error) {