Placeholder comments for modifications needed to /state & /state_ids

This commit is contained in:
Devon Hudson 2023-04-19 17:42:38 -06:00
parent 6d0b780922
commit a3b87f477c
No known key found for this signature in database
GPG key ID: CD06B18E77F6A628

View file

@ -41,6 +41,7 @@ func GetState(
return *err
}
// TODO: (PowerDAG) return full power DAG instead of auth chains?
return util.JSONResponse{Code: http.StatusOK, JSON: &fclient.RespState{
AuthEvents: gomatrixserverlib.NewEventJSONsFromHeaderedEvents(authChain),
StateEvents: gomatrixserverlib.NewEventJSONsFromHeaderedEvents(stateEvents),
@ -67,6 +68,7 @@ func GetStateIDs(
stateEventIDs := getIDsFromEvent(stateEvents)
authEventIDs := getIDsFromEvent(authEvents)
// TODO: (PowerDAG) return full power DAG instead of auth chains?
return util.JSONResponse{Code: http.StatusOK, JSON: fclient.RespStateIDs{
StateEventIDs: stateEventIDs,
AuthEventIDs: authEventIDs,
@ -121,6 +123,7 @@ func getState(
return nil, nil, resErr
}
// TODO: (PowerDAG) query full power DAG instead of auth chains
var response api.QueryStateAndAuthChainResponse
err := rsAPI.QueryStateAndAuthChain(
ctx,