From be44b5a6f11cbfcfea083105592710cddc0a4f3d Mon Sep 17 00:00:00 2001 From: Kegan Dougal Date: Sat, 14 Mar 2020 20:08:33 +0000 Subject: [PATCH] Add comment from @APwhitehat --- federationapi/routing/eventauth.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/federationapi/routing/eventauth.go b/federationapi/routing/eventauth.go index dab17f084..003165c85 100644 --- a/federationapi/routing/eventauth.go +++ b/federationapi/routing/eventauth.go @@ -29,6 +29,8 @@ func GetEventAuth( roomID string, eventID string, ) util.JSONResponse { + // TODO: Optimisation: we shouldn't be querying all the room state + // that is in state.StateEvents - we just ignore it. state, err := getState(ctx, request, query, roomID, eventID) if err != nil { return *err