mirror of
https://github.com/matrix-org/dendrite.git
synced 2024-11-26 08:11:55 -06:00
Fix getting the current state event
This commit is contained in:
parent
bc8e83fd28
commit
2b3b355ebd
|
@ -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 a new issue