-
- Downloads
Store room_versions in EventBase objects (#6875)
This is a bit fiddly because it all has to be done on one fell swoop: * Wherever we create a new event, pass in the room version (and check it matches the format version) * When we prune an event, use the room version of the unpruned event to create the pruned version. * When we pass an event over the replication protocol, pass the room version over alongside it, and use it when deserialising the event again.
Showing
- changelog.d/6875.misc 1 addition, 0 deletionschangelog.d/6875.misc
- synapse/events/__init__.py 39 additions, 14 deletionssynapse/events/__init__.py
- synapse/events/utils.py 4 additions, 10 deletionssynapse/events/utils.py
- synapse/replication/http/federation.py 9 additions, 4 deletionssynapse/replication/http/federation.py
- synapse/replication/http/send_event.py 10 additions, 4 deletionssynapse/replication/http/send_event.py
Loading
Please register or sign in to comment