diff options
author | Mark Haines <mark.haines@matrix.org> | 2015-01-26 16:32:40 +0000 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2015-01-26 16:32:40 +0000 |
commit | 3186c5bdbc49cf7cbca3ae0b45bc8657b069a9a8 (patch) | |
tree | dd7ba7aeb2be210a86668a7dc675627b17ec721e /synapse/handlers/events.py | |
parent | Add handler for /sync API (diff) | |
parent | Merge pull request #34 from matrix-org/remove_serialize_event_from_hs (diff) | |
download | synapse-3186c5bdbc49cf7cbca3ae0b45bc8657b069a9a8.tar.xz |
Merge branch 'develop' into client_v2_sync
Diffstat (limited to 'synapse/handlers/events.py')
-rw-r--r-- | synapse/handlers/events.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/handlers/events.py b/synapse/handlers/events.py index 01e67b0818..d997917cd6 100644 --- a/synapse/handlers/events.py +++ b/synapse/handlers/events.py @@ -18,6 +18,7 @@ from twisted.internet import defer from synapse.util.logcontext import PreserveLoggingContext from synapse.util.logutils import log_function from synapse.types import UserID +from synapse.events.utils import serialize_event from ._base import BaseHandler @@ -78,8 +79,10 @@ class EventStreamHandler(BaseHandler): auth_user, room_ids, pagin_config, timeout ) + time_now = self.clock.time_msec() + chunks = [ - self.hs.serialize_event(e, as_client_event) for e in events + serialize_event(e, time_now, as_client_event) for e in events ] chunk = { |