summary refs log tree commit diff
path: root/synapse/events/utils.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-01-13 10:01:22 +0000
committerErik Johnston <erik@matrix.org>2015-01-13 10:01:22 +0000
commit38e3241eb78d365e8264120574bc5970cfd5a326 (patch)
treef28cd87265be9df0d7bdc0b16b2645b8f9cd5657 /synapse/events/utils.py
parentUse float rather than integer divisions to turn msec into sec - so timeouts u... (diff)
parentBump version (diff)
downloadsynapse-38e3241eb78d365e8264120574bc5970cfd5a326.tar.xz
Merge branch 'hotfixes-v0.6.1b' of github.com:matrix-org/synapse into develop
Diffstat (limited to 'synapse/events/utils.py')
-rw-r--r--synapse/events/utils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/events/utils.py b/synapse/events/utils.py
index 4687d96f26..bcb5457278 100644
--- a/synapse/events/utils.py
+++ b/synapse/events/utils.py
@@ -106,7 +106,7 @@ def serialize_event(hs, e, client_event=True):
 
     if "age_ts" in d["unsigned"]:
         now = int(hs.get_clock().time_msec())
-        d["unsigned"]["age"] = now - d["unsigned"]["age_ts"]
+        d["age"] = now - d["unsigned"]["age_ts"]
         del d["unsigned"]["age_ts"]
 
     d["user_id"] = d.pop("sender", None)