mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-09-27 19:20:52 -04:00
Pull out event ids rather than full events for state
This commit is contained in:
parent
eb6a7cf3f4
commit
17f4f14df7
4 changed files with 119 additions and 55 deletions
|
@ -560,6 +560,18 @@ class FederationHandler(BaseHandler):
|
|||
]))
|
||||
states = dict(zip(event_ids, [s[1] for s in states]))
|
||||
|
||||
state_map = yield self.store.get_events(
|
||||
[e_id for ids in states.values() for e_id in ids],
|
||||
get_prev_content=False
|
||||
)
|
||||
states = {
|
||||
key: {
|
||||
k: state_map[e_id]
|
||||
for k, e_id in state_dict.items()
|
||||
if e_id in state_map
|
||||
} for key, state_dict in states.items()
|
||||
}
|
||||
|
||||
for e_id, _ in sorted_extremeties_tuple:
|
||||
likely_domains = get_domains_from_state(states[e_id])
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue