diff options
author | Patrick Cloke <clokep@users.noreply.github.com> | 2023-03-06 09:43:01 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-06 09:43:01 -0500 |
commit | 05e0a4089a013979e5d0642f6a0f1d22ad865ee1 (patch) | |
tree | acb316c71539d519dca1c98fcbecbbbf6ef4f527 /synapse/rest/client | |
parent | Stabilize support for MSC3758: event_property_is push condition (#15185) (diff) | |
download | synapse-05e0a4089a013979e5d0642f6a0f1d22ad865ee1.tar.xz |
Stop applying edits to event contents (MSC3925). (#15193)
Enables MSC3925 support by default, which: * Includes the full edit event in the bundled aggregations of an edited event. * Stops modifying the original event's content to return the new content from the edit event. This is a backwards-incompatible change that is considered to be "correct" by the spec.
Diffstat (limited to 'synapse/rest/client')
-rw-r--r-- | synapse/rest/client/room.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/rest/client/room.py b/synapse/rest/client/room.py index 45aee3d3fe..c5af07816a 100644 --- a/synapse/rest/client/room.py +++ b/synapse/rest/client/room.py @@ -818,7 +818,7 @@ class RoomEventServlet(RestServlet): # per MSC2676, /rooms/{roomId}/event/{eventId}, should return the # *original* event, rather than the edited version event_dict = self._event_serializer.serialize_event( - event, time_now, bundle_aggregations=aggregations, apply_edits=False + event, time_now, bundle_aggregations=aggregations ) return 200, event_dict |