summary refs log tree commit diff
path: root/synapse/events/builder.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-01-30 10:30:54 +0000
committerErik Johnston <erik@matrix.org>2015-01-30 10:30:54 +0000
commitc1c7b398270cc19fcf9410b9159f741092e0510b (patch)
tree28dd0adbce84dd907ea62509f37ddb74b6996c4e /synapse/events/builder.py
parentInitial implementation of auth conflict resolution (diff)
downloadsynapse-c1c7b398270cc19fcf9410b9159f741092e0510b.tar.xz
Fix bug where we changes in outlier in metadata dict propogated to other events
Diffstat (limited to 'synapse/events/builder.py')
-rw-r--r--synapse/events/builder.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/synapse/events/builder.py b/synapse/events/builder.py
index a9b1b99a10..9d45bdb892 100644
--- a/synapse/events/builder.py
+++ b/synapse/events/builder.py
@@ -23,14 +23,15 @@ import copy
 
 
 class EventBuilder(EventBase):
-    def __init__(self, key_values={}):
+    def __init__(self, key_values={}, internal_metadata_dict={}):
         signatures = copy.deepcopy(key_values.pop("signatures", {}))
         unsigned = copy.deepcopy(key_values.pop("unsigned", {}))
 
         super(EventBuilder, self).__init__(
             key_values,
             signatures=signatures,
-            unsigned=unsigned
+            unsigned=unsigned,
+            internal_metadata_dict=internal_metadata_dict,
         )
 
     def build(self):