summary refs log tree commit diff
path: root/synapse/storage/__init__.py
diff options
context:
space:
mode:
authorMark Haines <mark.haines@matrix.org>2014-11-14 19:10:52 +0000
committerMark Haines <mark.haines@matrix.org>2014-11-14 19:11:04 +0000
commit8c2b5ea7c44e3915068cd9ec18e5c22d0a3acfcc (patch)
treecc9d5c93ab2bc044e7e3cd51b43025c68a00da76 /synapse/storage/__init__.py
parentValidate signatures on incoming events (diff)
downloadsynapse-8c2b5ea7c44e3915068cd9ec18e5c22d0a3acfcc.tar.xz
Fix PDU and event signatures
Diffstat (limited to 'synapse/storage/__init__.py')
-rw-r--r--synapse/storage/__init__.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/storage/__init__.py b/synapse/storage/__init__.py
index d8f351a675..c36d938d96 100644
--- a/synapse/storage/__init__.py
+++ b/synapse/storage/__init__.py
@@ -132,8 +132,8 @@ class DataStore(RoomMemberStore, RoomStore,
         if not events_dict:
             defer.returnValue(None)
 
-        event = self._parse_event_from_row(events_dict)
-        defer.returnValue(event)
+        event = yield self._parse_events([events_dict])
+        defer.returnValue(event[0])
 
     @log_function
     def _persist_event_txn(self, txn, event, backfilled, stream_ordering=None,