From f123d7d65b43b5ded3abcbaa032832261f2b2686 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Thu, 28 May 2020 12:44:34 +0100 Subject: [PATCH] Hopefully fix get_missing_events (#1070) --- federationapi/routing/missingevents.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/federationapi/routing/missingevents.go b/federationapi/routing/missingevents.go index ae91c589..f93e0eb4 100644 --- a/federationapi/routing/missingevents.go +++ b/federationapi/routing/missingevents.go @@ -60,9 +60,14 @@ func GetMissingEvents( } eventsResponse.Events = filterEvents(eventsResponse.Events, gme.MinDepth, roomID) + + resp := gomatrixserverlib.RespMissingEvents{ + Events: gomatrixserverlib.UnwrapEventHeaders(eventsResponse.Events), + } + return util.JSONResponse{ Code: http.StatusOK, - JSON: eventsResponse, + JSON: resp, } }