diff options
author | Erik Johnston <erik@matrix.org> | 2022-05-25 12:59:04 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-05-25 12:59:04 +0100 |
commit | 4660d9fdcffc833ae4774ac7d162e63769373dc5 (patch) | |
tree | 3782f599708de9e95abbaf4dab02ca9da5dcea33 /synapse/push/mailer.py | |
parent | Remove user-visible groups/communities code (#12553) (diff) | |
download | synapse-4660d9fdcffc833ae4774ac7d162e63769373dc5.tar.xz |
Fix up `state_store` naming (#12871)
Diffstat (limited to 'synapse/push/mailer.py')
-rw-r--r-- | synapse/push/mailer.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/push/mailer.py b/synapse/push/mailer.py index 5ccdd88364..84124af965 100644 --- a/synapse/push/mailer.py +++ b/synapse/push/mailer.py @@ -114,7 +114,7 @@ class Mailer: self.send_email_handler = hs.get_send_email_handler() self.store = self.hs.get_datastores().main - self.state_store = self.hs.get_storage().state + self.state_storage = self.hs.get_storage().state self.macaroon_gen = self.hs.get_macaroon_generator() self.state_handler = self.hs.get_state_handler() self.storage = hs.get_storage() @@ -494,7 +494,7 @@ class Mailer: ) else: # Attempt to check the historical state for the room. - historical_state = await self.state_store.get_state_for_event( + historical_state = await self.state_storage.get_state_for_event( event.event_id, StateFilter.from_types((type_state_key,)) ) sender_state_event = historical_state.get(type_state_key) @@ -767,7 +767,7 @@ class Mailer: member_event_ids.append(sender_state_event_id) else: # Attempt to check the historical state for the room. - historical_state = await self.state_store.get_state_for_event( + historical_state = await self.state_storage.get_state_for_event( event_id, StateFilter.from_types((type_state_key,)) ) sender_state_event = historical_state.get(type_state_key) |