diff options
author | Till Faelligen <2353100+S7evinK@users.noreply.github.com> | 2023-06-29 18:02:11 +0200 |
---|---|---|
committer | Till Faelligen <2353100+S7evinK@users.noreply.github.com> | 2023-06-29 18:02:11 +0200 |
commit | 939ee325f80c0c57704b8c34e3faa1c7a3927781 (patch) | |
tree | 28ec0a879ab33ae1ce957e14bebfb4be3f83e996 | |
parent | 23cd7877a14bca5315467591cd47a7d51aec22ce (diff) |
Actually use the parameter
-rw-r--r-- | roomserver/internal/query/query.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/roomserver/internal/query/query.go b/roomserver/internal/query/query.go index 918619e5..626d3c13 100644 --- a/roomserver/internal/query/query.go +++ b/roomserver/internal/query/query.go @@ -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 } |