From 49c0478e6e021866a43bb8f8dc6b98421f13322a Mon Sep 17 00:00:00 2001 From: Cnly Date: Fri, 19 Jul 2019 13:56:13 +0800 Subject: [PATCH] Return the requested events in client event format Signed-off-by: Alex Chen --- clientapi/routing/getevent.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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), } }