aboutsummaryrefslogtreecommitdiff
path: root/roomserver/internal/helpers/auth.go
diff options
context:
space:
mode:
Diffstat (limited to 'roomserver/internal/helpers/auth.go')
-rw-r--r--roomserver/internal/helpers/auth.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/roomserver/internal/helpers/auth.go b/roomserver/internal/helpers/auth.go
index 1f4215e7..ddda8081 100644
--- a/roomserver/internal/helpers/auth.go
+++ b/roomserver/internal/helpers/auth.go
@@ -56,7 +56,7 @@ func CheckForSoftFail(
// Then get the state entries for the current state snapshot.
// We'll use this to check if the event is allowed right now.
- roomState := state.NewStateResolution(db, *roomInfo)
+ roomState := state.NewStateResolution(db, roomInfo)
authStateEntries, err = roomState.LoadStateAtSnapshot(ctx, roomInfo.StateSnapshotNID)
if err != nil {
return true, fmt.Errorf("roomState.LoadStateAtSnapshot: %w", err)