mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-08-06 19:24:12 -04:00
Wait for lazy join to complete when getting current state (#12872)
This commit is contained in:
parent
782cb7420a
commit
888a29f412
33 changed files with 361 additions and 82 deletions
|
@ -50,6 +50,7 @@ EMPTY_THIRD_PARTY_ID = ThirdPartyInstanceID(None, None)
|
|||
class RoomListHandler:
|
||||
def __init__(self, hs: "HomeServer"):
|
||||
self.store = hs.get_datastores().main
|
||||
self._storage_controllers = hs.get_storage_controllers()
|
||||
self.hs = hs
|
||||
self.enable_room_list_search = hs.config.roomdirectory.enable_room_list_search
|
||||
self.response_cache: ResponseCache[
|
||||
|
@ -274,7 +275,7 @@ class RoomListHandler:
|
|||
if aliases:
|
||||
result["aliases"] = aliases
|
||||
|
||||
current_state_ids = await self.store.get_current_state_ids(
|
||||
current_state_ids = await self._storage_controllers.state.get_current_state_ids(
|
||||
room_id, on_invalidate=cache_context.invalidate
|
||||
)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue