diff --git a/clientapi/routing/getevent.go b/clientapi/routing/getevent.go index 17195bb99..99a9f68cf 100644 --- a/clientapi/routing/getevent.go +++ b/clientapi/routing/getevent.go @@ -117,7 +117,7 @@ func GetEvent( if allowed { return util.JSONResponse{ Code: http.StatusOK, - JSON: r.requestedEvent, + JSON: gomatrixserverlib.ToClientEvent(r.requestedEvent, gomatrixserverlib.FormatAll), } }