0
0
Fork 0
mirror of https://github.com/matrix-org/dendrite synced 2024-06-06 14:38:56 +02:00

Actually use the parameter

This commit is contained in:
Till Faelligen 2023-06-29 18:02:11 +02:00
parent 23cd7877a1
commit 939ee325f8
No known key found for this signature in database
GPG key ID: ACCDC9606D472758

View file

@ -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
}