Don't reinsert into event_edges

pull/123/head
Erik Johnston 2015-03-24 16:20:26 +00:00
parent 1aa44939fc
commit f488293d96
1 changed files with 8 additions and 8 deletions

View File

@ -149,14 +149,6 @@ class EventsStore(SQLBaseStore):
event.depth
)
self._handle_prev_events(
txn,
outlier=outlier,
event_id=event.event_id,
prev_events=event.prev_events,
room_id=event.room_id,
)
have_persisted = self._simple_select_one_onecol_txn(
txn,
table="event_json",
@ -196,6 +188,14 @@ class EventsStore(SQLBaseStore):
)
return
self._handle_prev_events(
txn,
outlier=outlier,
event_id=event.event_id,
prev_events=event.prev_events,
room_id=event.room_id,
)
if event.type == EventTypes.Member:
self._store_room_member_txn(txn, event)
elif event.type == EventTypes.Name: