Skip to content
This repository was archived by the owner on Nov 25, 2024. It is now read-only.

Commit 939ee32

Browse files
committed
Actually use the parameter
1 parent 23cd787 commit 939ee32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

roomserver/internal/query/query.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -937,7 +937,7 @@ func (r *Queryer) QueryRoomInfo(ctx context.Context, roomID spec.RoomID) (*types
937937
}
938938

939939
func (r *Queryer) CurrentStateEvent(ctx context.Context, roomID spec.RoomID, eventType string, stateKey string) (gomatrixserverlib.PDU, error) {
940-
res, err := r.DB.GetStateEvent(ctx, roomID.String(), eventType, "")
940+
res, err := r.DB.GetStateEvent(ctx, roomID.String(), eventType, stateKey)
941941
if res == nil {
942942
return nil, err
943943
}

0 commit comments

Comments
 (0)