Skip to content
Snippets Groups Projects
Commit b1a38c39 authored by Erik Johnston's avatar Erik Johnston
Browse files

Merge branch 'hotfixes-v0.6.1b' of github.com:matrix-org/synapse

parents f3467d46 1d3d3793
No related branches found
Tags v0.6.1b
No related merge requests found
0.6.1a
0.6.1b
......@@ -16,4 +16,4 @@
""" This is a reference implementation of a synapse home server.
"""
__version__ = "0.6.1a"
__version__ = "0.6.1b"
......@@ -98,7 +98,7 @@ def serialize_event(hs, e):
d = {k: v for k, v in e.get_dict().items()}
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)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment