diff options
author | Mark Haines <mark.haines@matrix.org> | 2014-11-14 21:25:02 +0000 |
---|---|---|
committer | Mark Haines <mark.haines@matrix.org> | 2014-11-14 21:25:02 +0000 |
commit | cb4b6c844a0c9e2d4a96165958ff5680ed82e160 (patch) | |
tree | 541226f5258a0e4b2e3ebdd1a4759bd9404f431d /synapse/storage/_base.py | |
parent | Fix PDU and event signatures (diff) | |
download | synapse-cb4b6c844a0c9e2d4a96165958ff5680ed82e160.tar.xz |
Merge PDUs and Events into one object
Diffstat (limited to 'synapse/storage/_base.py')
-rw-r--r-- | synapse/storage/_base.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py index 30e6eac8db..5d4be09a82 100644 --- a/synapse/storage/_base.py +++ b/synapse/storage/_base.py @@ -492,6 +492,14 @@ class SQLBaseStore(object): for n, s in signatures.items() } + hashes = self._get_event_content_hashes_txn( + txn, ev.event_id, + ) + + ev.hashes = { + k: encode_base64(v) for k, v in hashes.items() + } + prevs = self._get_prev_events_and_state(txn, ev.event_id) ev.prev_events = [ |