aboutsummaryrefslogtreecommitdiff
path: root/federationapi/routing/missingevents.go
diff options
context:
space:
mode:
Diffstat (limited to 'federationapi/routing/missingevents.go')
-rw-r--r--federationapi/routing/missingevents.go7
1 files changed, 6 insertions, 1 deletions
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,
}
}