summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorErik Johnston <erikj@jki.re>2017-06-12 09:49:51 +0100
committerGitHub <noreply@github.com>2017-06-12 09:49:51 +0100
commita837765e8c3fa31d92b842baae43c22208b9ec07 (patch)
tree330cacdc5ac421c3b4923a3d4380fbf980f72af5 /synapse/handlers
parentMerge pull request #2269 from matrix-org/erikj/cache_state_delta (diff)
parentTweak SQL (diff)
downloadsynapse-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/handlers')
-rw-r--r--synapse/handlers/user_directory.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/synapse/handlers/user_directory.py b/synapse/handlers/user_directory.py
index 43eb1c78e9..02b720b654 100644
--- a/synapse/handlers/user_directory.py
+++ b/synapse/handlers/user_directory.py
@@ -151,7 +151,7 @@ class UserDirectoyHandler(object):
     def _handle_intial_room(self, room_id):
         """Called when we initially fill out user_directory one room at a time
         """
-        is_in_room = yield self.state.get_is_host_in_room(room_id, self.server_name)
+        is_in_room = yield self.store.is_host_joined(room_id, self.server_name)
         if not is_in_room:
             return
 
@@ -209,7 +209,7 @@ class UserDirectoyHandler(object):
                 if not change:
                     # Need to check if the server left the room entirely, if so
                     # we might need to remove all the users in that room
-                    is_in_room = yield self.state.get_is_host_in_room(
+                    is_in_room = yield self.store.is_host_joined(
                         room_id, self.server_name,
                     )
                     if not is_in_room:
@@ -346,7 +346,7 @@ class UserDirectoyHandler(object):
             if not update_user_in_public and not update_user_dir:
                 break
 
-            is_in_room = yield self.state.get_is_host_in_room(
+            is_in_room = yield self.store.is_host_joined(
                 j_room_id, self.server_name,
             )