mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-02 12:16:09 -04:00
Fix bug where we changes in outlier in metadata dict propogated to other events
This commit is contained in:
parent
78015948a7
commit
c1c7b39827
3 changed files with 8 additions and 4 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue