summary refs log tree commit diff
path: root/synapse/storage/_base.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-11-12 17:02:18 +0000
committerErik Johnston <erik@matrix.org>2014-11-12 17:02:34 +0000
commitf04b3d5042b85fa81efff9b561ca7af8d9709756 (patch)
tree08a37b4e2d62315f1ea6cd5bd0ccba9630594c12 /synapse/storage/_base.py
parentAdd more recents service unit tests. (diff)
downloadsynapse-f04b3d5042b85fa81efff9b561ca7af8d9709756.tar.xz
Store all signatures on events rather than just dropping them
Diffstat (limited to 'synapse/storage/_base.py')
-rw-r--r--synapse/storage/_base.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/synapse/storage/_base.py b/synapse/storage/_base.py
index a1ee0318f6..670387b04a 100644
--- a/synapse/storage/_base.py
+++ b/synapse/storage/_base.py
@@ -470,12 +470,15 @@ class SQLBaseStore(object):
         select_event_sql = "SELECT * FROM events WHERE event_id = ?"
 
         for i, ev in enumerate(events):
-            signatures = self._get_event_origin_signatures_txn(
+            signatures = self._get_event_signatures_txn(
                 txn, ev.event_id,
             )
 
             ev.signatures = {
-                k: encode_base64(v) for k, v in signatures.items()
+                n: {
+                    k: encode_base64(v) for k, v in s.items()
+                }
+                for n, s in signatures.items()
             }
 
             prevs = self._get_prev_events_and_state(txn, ev.event_id)