From a3b87f477cc3a56ea1858f960bd470ccd1f150f8 Mon Sep 17 00:00:00 2001 From: Devon Hudson Date: Wed, 19 Apr 2023 17:42:38 -0600 Subject: [PATCH] Placeholder comments for modifications needed to /state & /state_ids --- federationapi/routing/state.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/federationapi/routing/state.go b/federationapi/routing/state.go index 1152c0932..c272ba043 100644 --- a/federationapi/routing/state.go +++ b/federationapi/routing/state.go @@ -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,