Hopefully fix get_missing_events (#1070)

main
Neil Alexander 2020-05-28 12:44:34 +01:00 committed by GitHub
parent 2411007c4b
commit f123d7d65b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -60,9 +60,14 @@ func GetMissingEvents(
} }
eventsResponse.Events = filterEvents(eventsResponse.Events, gme.MinDepth, roomID) eventsResponse.Events = filterEvents(eventsResponse.Events, gme.MinDepth, roomID)
resp := gomatrixserverlib.RespMissingEvents{
Events: gomatrixserverlib.UnwrapEventHeaders(eventsResponse.Events),
}
return util.JSONResponse{ return util.JSONResponse{
Code: http.StatusOK, Code: http.StatusOK,
JSON: eventsResponse, JSON: resp,
} }
} }