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

Commit

Permalink
Actually use the parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
S7evinK committed Jun 29, 2023
1 parent 23cd787 commit 939ee32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion roomserver/internal/query/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -937,7 +937,7 @@ func (r *Queryer) QueryRoomInfo(ctx context.Context, roomID spec.RoomID) (*types
}

func (r *Queryer) CurrentStateEvent(ctx context.Context, roomID spec.RoomID, eventType string, stateKey string) (gomatrixserverlib.PDU, error) {
res, err := r.DB.GetStateEvent(ctx, roomID.String(), eventType, "")
res, err := r.DB.GetStateEvent(ctx, roomID.String(), eventType, stateKey)
if res == nil {
return nil, err
}
Expand Down

0 comments on commit 939ee32

Please sign in to comment.