mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-03 16:14:15 -04:00
Fix bug where we incorrectly calculated 'age_ts' from 'age' key rather than the reverse. Don't transmit age_ts to clients for now.
This commit is contained in:
parent
59516a8bb1
commit
40d2f38abe
2 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue