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

"Comments"

parent 3b05b67c
No related branches found
No related tags found
No related merge requests found
......@@ -306,6 +306,12 @@ class EventFederationStore(SQLBaseStore):
self._update_extremeties(txn, events)
def _update_extremeties(self, txn, events):
"""Updates the event_*_extremities tables based on the new/updated
events being persisted.
This is called for new events *and* for events that were outliers, but
are are now being persisted as non-outliers.
"""
events_by_room = {}
for ev in events:
events_by_room.setdefault(ev.room_id, []).append(ev)
......
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