From 31d0d9cd42feb3ae6233a0aa05ca2271cd1e1d70 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Wed, 1 Apr 2020 14:03:02 +0100 Subject: [PATCH] Fix getState --- federationapi/routing/state.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/federationapi/routing/state.go b/federationapi/routing/state.go index 6a47882b7..6c02722e9 100644 --- a/federationapi/routing/state.go +++ b/federationapi/routing/state.go @@ -107,7 +107,7 @@ func getState( return nil, &util.JSONResponse{Code: http.StatusNotFound, JSON: nil} } - prevEventIDs := getIDsFromEventRef(event.PrevEvents()) + prevEventIDs := []string{eventID} authEventIDs := getIDsFromEventRef(event.AuthEvents()) var response api.QueryStateAndAuthChainResponse