diff options
author | Erik Johnston <erikj@jki.re> | 2017-06-12 09:49:51 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-06-12 09:49:51 +0100 |
commit | a837765e8c3fa31d92b842baae43c22208b9ec07 (patch) | |
tree | 330cacdc5ac421c3b4923a3d4380fbf980f72af5 /synapse/state.py | |
parent | Merge pull request #2269 from matrix-org/erikj/cache_state_delta (diff) | |
parent | Tweak SQL (diff) | |
download | synapse-a837765e8c3fa31d92b842baae43c22208b9ec07.tar.xz |
Merge pull request #2266 from matrix-org/erikj/host_in_room
Change is_host_joined to use current_state table
Diffstat (limited to 'synapse/state.py')
-rw-r--r-- | synapse/state.py | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/synapse/state.py b/synapse/state.py index 576eb6b788..5b386e3183 100644 --- a/synapse/state.py +++ b/synapse/state.py @@ -183,17 +183,6 @@ class StateHandler(object): defer.returnValue(joined_hosts) @defer.inlineCallbacks - def get_is_host_in_room(self, room_id, host, latest_event_ids=None): - if not latest_event_ids: - latest_event_ids = yield self.store.get_latest_event_ids_in_room(room_id) - logger.debug("calling resolve_state_groups from get_is_host_in_room") - entry = yield self.resolve_state_groups(room_id, latest_event_ids) - is_host_joined = yield self.store.is_host_joined( - room_id, host, entry.state_id, entry.state - ) - defer.returnValue(is_host_joined) - - @defer.inlineCallbacks def compute_event_context(self, event, old_state=None): """Build an EventContext structure for the event. |