summary refs log tree commit diff
path: root/synapse/rest/client/room_batch.py
diff options
context:
space:
mode:
authorEric Eastwood <erice@element.io>2021-12-15 23:20:53 -0600
committerEric Eastwood <erice@element.io>2021-12-15 23:20:53 -0600
commitec33a40201e1086cb5ff0548e409abc35f0ce056 (patch)
tree5d53d2bc1cbcefe9039b5a45219224d4e8dbc833 /synapse/rest/client/room_batch.py
parentPlumb allow_no_prev_events through for MSC2716 (diff)
downloadsynapse-ec33a40201e1086cb5ff0548e409abc35f0ce056.tar.xz
Make the historical events float separately from the state chain
See https://github.com/matrix-org/synapse/pull/11114#discussion_r760843910
Diffstat (limited to 'synapse/rest/client/room_batch.py')
-rw-r--r--synapse/rest/client/room_batch.py9
1 files changed, 0 insertions, 9 deletions
diff --git a/synapse/rest/client/room_batch.py b/synapse/rest/client/room_batch.py

index c9509d2ae3..4b6be38327 100644 --- a/synapse/rest/client/room_batch.py +++ b/synapse/rest/client/room_batch.py
@@ -205,21 +205,12 @@ class RoomBatchSendEventRestServlet(RestServlet): EventContentFields.MSC2716_NEXT_BATCH_ID ] - # Also connect the historical event chain to the end of the floating - # state chain, which causes the HS to ask for the state at the start of - # the batch later. If there is no state chain to connect to, just make - # the insertion event float itself. - prev_event_ids = [] - if len(state_event_ids_at_start): - prev_event_ids = [state_event_ids_at_start[-1]] - # Create and persist all of the historical events as well as insertion # and batch meta events to make the batch navigable in the DAG. event_ids, next_batch_id = await self.room_batch_handler.handle_batch_of_events( events_to_create=events_to_create, room_id=room_id, batch_id_to_connect_to=batch_id_to_connect_to, - initial_prev_event_ids=prev_event_ids, inherited_depth=inherited_depth, auth_event_ids=auth_event_ids, app_service_requester=requester,