aboutsummaryrefslogtreecommitdiff
path: root/federationapi
diff options
context:
space:
mode:
authorNeil Alexander <neilalexander@users.noreply.github.com>2020-05-28 12:44:34 +0100
committerGitHub <noreply@github.com>2020-05-28 12:44:34 +0100
commitf123d7d65b43b5ded3abcbaa032832261f2b2686 (patch)
treedad24109394509f1a9f9f889dc27b082937c0554 /federationapi
parent2411007c4bab8b5c851f3e1e9552cd7a69bbcd9b (diff)
Hopefully fix get_missing_events (#1070)
Diffstat (limited to 'federationapi')
-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,
}
}