Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Commit

Permalink
Set internal_metadata on the correct object
Browse files Browse the repository at this point in the history
  • Loading branch information
anoadragon453 committed Jul 10, 2019
1 parent fe23482 commit f8e8e21
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions synapse/events/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,12 +52,13 @@ def prune_event(event):

from . import event_type_from_format_version

# Mark the event as redacted
event.internal_metadata.redacted = True

return event_type_from_format_version(event.format_version)(
pruned_event = event_type_from_format_version(event.format_version)(
pruned_event_dict, event.internal_metadata.get_dict()
)
# Mark the event as redacted
pruned_event.internal_metadata.redacted = True

return pruned_event


def prune_event_dict(event_dict):
Expand Down

0 comments on commit f8e8e21

Please sign in to comment.