summary refs log tree commit diff
path: root/synapse/events/__init__.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2014-12-16 13:17:09 +0000
committerErik Johnston <erik@matrix.org>2014-12-16 13:17:09 +0000
commit882dc8dcab434d24b0e902be3b4545ceabe9bdbe (patch)
treecc3f35fc5609c983cc56d2ae48628bcb7522f103 /synapse/events/__init__.py
parentAdd basic docstring to annotate_context_with_state (diff)
downloadsynapse-882dc8dcab434d24b0e902be3b4545ceabe9bdbe.tar.xz
Persist internal_metadata
Diffstat (limited to 'synapse/events/__init__.py')
-rw-r--r--synapse/events/__init__.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/synapse/events/__init__.py b/synapse/events/__init__.py
index 1ec79a6788..984f14fce4 100644
--- a/synapse/events/__init__.py
+++ b/synapse/events/__init__.py
@@ -111,7 +111,7 @@ class EventBase(object):
 
 
 class FrozenEvent(EventBase):
-    def __init__(self, event_dict):
+    def __init__(self, event_dict, internal_metadata_dict={}):
         event_dict = copy.deepcopy(event_dict)
 
         signatures = copy.deepcopy(event_dict.pop("signatures", {}))
@@ -122,7 +122,8 @@ class FrozenEvent(EventBase):
         super(FrozenEvent, self).__init__(
             frozen_dict,
             signatures=signatures,
-            unsigned=unsigned
+            unsigned=unsigned,
+            internal_metadata_dict=internal_metadata_dict,
         )
 
     @staticmethod