summary refs log tree commit diff
path: root/synapse/handlers/events.py
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2015-01-08 14:27:04 +0000
committerKegan Dougal <kegan@matrix.org>2015-01-08 14:28:08 +0000
commitedb557b2ad98d3260caaba41ef2278b3eafc7e85 (patch)
treed3c5bceb3f5c9fb142c4ff6f8ab23b095f4eae37 /synapse/handlers/events.py
parentAdd missing continuation indent. (diff)
downloadsynapse-edb557b2ad98d3260caaba41ef2278b3eafc7e85.tar.xz
Return the raw federation event rather than adding extra keys for federation data.
Diffstat (limited to 'synapse/handlers/events.py')
-rw-r--r--synapse/handlers/events.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/events.py b/synapse/handlers/events.py
index 4e805606b8..c9ade253dd 100644
--- a/synapse/handlers/events.py
+++ b/synapse/handlers/events.py
@@ -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 = {