diff options
author | Erik Johnston <erik@matrix.org> | 2014-12-16 13:17:09 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2014-12-16 13:17:09 +0000 |
commit | 882dc8dcab434d24b0e902be3b4545ceabe9bdbe (patch) | |
tree | cc3f35fc5609c983cc56d2ae48628bcb7522f103 /synapse/events/__init__.py | |
parent | Add basic docstring to annotate_context_with_state (diff) | |
download | synapse-882dc8dcab434d24b0e902be3b4545ceabe9bdbe.tar.xz |
Persist internal_metadata
Diffstat (limited to 'synapse/events/__init__.py')
-rw-r--r-- | synapse/events/__init__.py | 5 |
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 |