diff options
author | Erik Johnston <erik@matrix.org> | 2015-01-30 10:30:54 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-01-30 10:30:54 +0000 |
commit | c1c7b398270cc19fcf9410b9159f741092e0510b (patch) | |
tree | 28dd0adbce84dd907ea62509f37ddb74b6996c4e /synapse/events/utils.py | |
parent | Initial implementation of auth conflict resolution (diff) | |
download | synapse-c1c7b398270cc19fcf9410b9159f741092e0510b.tar.xz |
Fix bug where we changes in outlier in metadata dict propogated to other events
Diffstat (limited to 'synapse/events/utils.py')
-rw-r--r-- | synapse/events/utils.py | 5 |
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): |