Fix up state_store naming (#12871)

This commit is contained in:
Erik Johnston 2022-05-25 12:59:04 +01:00 committed by GitHub
parent a8db8c6eba
commit 4660d9fdcf
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 58 additions and 49 deletions

View file

@ -1193,7 +1193,7 @@ class RoomContextHandler:
self.auth = hs.get_auth()
self.store = hs.get_datastores().main
self.storage = hs.get_storage()
self.state_store = self.storage.state
self.state_storage = self.storage.state
self._relations_handler = hs.get_relations_handler()
async def get_event_context(
@ -1293,7 +1293,7 @@ class RoomContextHandler:
# first? Shouldn't we be consistent with /sync?
# https://github.com/matrix-org/matrix-doc/issues/687
state = await self.state_store.get_state_for_events(
state = await self.state_storage.get_state_for_events(
[last_event_id], state_filter=state_filter
)