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

pull/44/head v0.6.1b
Erik Johnston 2015-01-13 10:00:47 +00:00
commit b1a38c39ad
3 changed files with 3 additions and 3 deletions

View File

@ -1 +1 @@
0.6.1a 0.6.1b

View File

@ -16,4 +16,4 @@
""" This is a reference implementation of a synapse home server. """ This is a reference implementation of a synapse home server.
""" """
__version__ = "0.6.1a" __version__ = "0.6.1b"

View File

@ -98,7 +98,7 @@ def serialize_event(hs, e):
d = {k: v for k, v in e.get_dict().items()} d = {k: v for k, v in e.get_dict().items()}
if "age_ts" in d["unsigned"]: if "age_ts" in d["unsigned"]:
now = int(hs.get_clock().time_msec()) 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"] del d["unsigned"]["age_ts"]
d["user_id"] = d.pop("sender", None) d["user_id"] = d.pop("sender", None)