summary refs log tree commit diff
path: root/synapse/storage
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-10-31 17:08:52 +0000
committerErik Johnston <erik@matrix.org>2014-10-31 17:08:52 +0000
commitecabff7eb49ea799d9f52fad1e05f1f9a4b31e1c (patch)
treeae7ff886fbb0b65f0bc82215bf88e48b3d7d3e04 /synapse/storage
parentRemove unused signature storage methods (diff)
downloadsynapse-ecabff7eb49ea799d9f52fad1e05f1f9a4b31e1c.tar.xz
Sign evnets
Diffstat (limited to 'synapse/storage')
-rw-r--r--synapse/storage/__init__.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/synapse/storage/__init__.py b/synapse/storage/__init__.py
index 31a0022d54..1f39a4094e 100644
--- a/synapse/storage/__init__.py
+++ b/synapse/storage/__init__.py
@@ -255,6 +255,12 @@ class DataStore(RoomMemberStore, RoomStore,
                 }
             )
 
+        for hash_alg, hash_base64 in event.hashes.items():
+            hash_bytes = decode_base64(hash_base64)
+            self._store_event_content_hash_txn(
+                txn, event.event_id, hash_alg, hash_bytes,
+            )
+
         if hasattr(event, "signatures"):
             signatures = event.signatures.get(event.origin, {})