summary refs log tree commit diff
path: root/synapse/storage/events.py
diff options
context:
space:
mode:
authorErik Johnston <erikj@jki.re>2017-06-30 11:03:04 +0100
committerGitHub <noreply@github.com>2017-06-30 11:03:04 +0100
commit47574c9cbaa183acfccde9cc0c6b30dfa0fbc2fd (patch)
tree43a5d5ba21df1a39d8052b5e4d55c3398413a61d /synapse/storage/events.py
parentMerge pull request #2320 from matrix-org/erikj/cache_macaroon_parse (diff)
parentMake into list (diff)
downloadsynapse-47574c9cbaa183acfccde9cc0c6b30dfa0fbc2fd.tar.xz
Merge pull request #2321 from matrix-org/erikj/prefill_forward
Prefill forward extrems and event to state groups
Diffstat (limited to 'synapse/storage/events.py')
-rw-r--r--synapse/storage/events.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/synapse/storage/events.py b/synapse/storage/events.py

index 2b7340c1d9..7002b3752e 100644 --- a/synapse/storage/events.py +++ b/synapse/storage/events.py
@@ -403,6 +403,11 @@ class EventsStore(SQLBaseStore): (room_id, ), new_state ) + for room_id, latest_event_ids in new_forward_extremeties.iteritems(): + self.get_latest_event_ids_in_room.prefill( + (room_id,), list(latest_event_ids) + ) + @defer.inlineCallbacks def _calculate_new_extremeties(self, room_id, event_contexts, latest_event_ids): """Calculates the new forward extremeties for a room given events to