If the new /hierarchy API does not exist on all destinations, fallback to querying the /spaces API and translating the results. This is a backwards compatibility hack since not all of the federated homeservers will update at the same time.
synapse/
PeriodicallyFlushingMemoryHandler
external_ids
defer.ensureDeferred
ObservableDeferred
get_userinfo_by_id
ModuleApi