Skip to content
Snippets Groups Projects
Commit 531d7955 authored by Erik Johnston's avatar Erik Johnston
Browse files

Don't insert without deduplication. In this case we never actually use this...

Don't insert without deduplication. In this case we never actually use this table, so simply remove the insert entirely
parent bdcd7693
No related branches found
No related tags found
No related merge requests found
......@@ -127,28 +127,6 @@ class EventsStore(SQLBaseStore):
],
)
if event.is_state() and is_new_state:
if not backfilled and not context.rejected:
self._simple_insert_txn(
txn,
table="state_forward_extremities",
values={
"event_id": event.event_id,
"room_id": event.room_id,
"type": event.type,
"state_key": event.state_key,
},
)
for prev_state_id, _ in event.prev_state:
self._simple_delete_txn(
txn,
table="state_forward_extremities",
keyvalues={
"event_id": prev_state_id,
}
)
outlier = event.internal_metadata.is_outlier()
if not outlier:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment