summary refs log tree commit diff
path: root/synapse/events/utils.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/utils.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 '')
-rw-r--r--synapse/events/utils.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/synapse/events/utils.py b/synapse/events/utils.py
index 10a6b9f264..08d6d6fa47 100644
--- a/synapse/events/utils.py
+++ b/synapse/events/utils.py
@@ -88,7 +88,10 @@ def prune_event(event):
     if "age_ts" in event.unsigned:
         allowed_fields["unsigned"]["age_ts"] = event.unsigned["age_ts"]
 
-    return type(event)(allowed_fields)
+    return type(event)(
+        allowed_fields,
+        internal_metadata_dict=event.internal_metadata.get_dict()
+    )
 
 
 def serialize_event(hs, e, client_event=True):