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

@ -47,7 +47,7 @@ class EventStreamHandler(BaseHandler):
@defer.inlineCallbacks
@log_function
def get_stream(self, auth_user_id, pagin_config, timeout=0,
trim_events=True):
as_client_event=True):
auth_user = self.hs.parse_userid(auth_user_id)
try:
@ -80,7 +80,7 @@ class EventStreamHandler(BaseHandler):
)
chunks = [
self.hs.serialize_event(e, trim_events) for e in events
self.hs.serialize_event(e, as_client_event) for e in events
]
chunk = {