summary refs log tree commit diff
path: root/synapse/api/events/__init__.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-09-15 16:55:39 +0100
committerErik Johnston <erik@matrix.org>2014-09-15 16:55:39 +0100
commit40d2f38abe604525fb03622995c377904f1ea3dd (patch)
treec4c3706c92e57a369d8c313c7289293f4fbc4f85 /synapse/api/events/__init__.py
parentCorrectly handle receiving 'missing' Pdus from federation, rather than just d... (diff)
downloadsynapse-40d2f38abe604525fb03622995c377904f1ea3dd.tar.xz
Fix bug where we incorrectly calculated 'age_ts' from 'age' key rather than the reverse. Don't transmit age_ts to clients for now.
Diffstat (limited to 'synapse/api/events/__init__.py')
-rw-r--r--synapse/api/events/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/synapse/api/events/__init__.py b/synapse/api/events/__init__.py
index 72c493db57..add81ec3e6 100644
--- a/synapse/api/events/__init__.py
+++ b/synapse/api/events/__init__.py
@@ -25,6 +25,7 @@ def serialize_event(hs, e):
     d = e.get_dict()
     if "age_ts" in d:
         d["age"] = int(hs.get_clock().time_msec()) - d["age_ts"]
+        del d["age_ts"]
 
     return d