Return the raw federation event rather than adding extra keys for federation data.

This commit is contained in:
Kegan Dougal 2015-01-08 14:27:04 +00:00
parent 5940ec993b
commit edb557b2ad
6 changed files with 27 additions and 19 deletions

View file

@ -44,11 +44,11 @@ class EventStreamRestServlet(RestServlet):
except ValueError:
raise SynapseError(400, "timeout must be in milliseconds.")
trim_events = "raw" not in request.args
as_client_event = "raw" not in request.args
chunk = yield handler.get_stream(
auth_user.to_string(), pagin_config, timeout=timeout,
trim_events=trim_events
as_client_event=as_client_event
)
except:
logger.exception("Event stream failed")