Return the requested events in client event format

Signed-off-by: Alex Chen <minecnly@gmail.com>
This commit is contained in:
Cnly 2019-07-19 13:56:13 +08:00
parent ee78aaf246
commit 49c0478e6e

View file

@ -117,7 +117,7 @@ func GetEvent(
if allowed {
return util.JSONResponse{
Code: http.StatusOK,
JSON: r.requestedEvent,
JSON: gomatrixserverlib.ToClientEvent(r.requestedEvent, gomatrixserverlib.FormatAll),
}
}