mirror of
https://github.com/1f349/dendrite.git
synced 2024-11-08 18:16:59 +00:00
Actually use the parameter
This commit is contained in:
parent
23cd7877a1
commit
939ee325f8
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user