mirror of
https://github.com/hoernschen/dendrite.git
synced 2024-12-27 07:28:27 +00:00
Hopefully fix get_missing_events (#1070)
This commit is contained in:
parent
2411007c4b
commit
f123d7d65b
1 changed files with 6 additions and 1 deletions
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue