summary refs log tree commit diff
path: root/synapse/handlers/room.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-08-19 13:46:03 +0100
committerErik Johnston <erik@matrix.org>2015-08-19 13:46:03 +0100
commitdaa01842f889a8d93a33d7e11cddc1b72700810e (patch)
tree3a8cc39f417fcaad2c88da5782536d99e495c124 /synapse/handlers/room.py
parentRemove an access token log line (diff)
downloadsynapse-daa01842f889a8d93a33d7e11cddc1b72700810e.tar.xz
Don't get apservice interested rooms in RoomHandler.get_joined_rooms_for_users
Diffstat (limited to 'synapse/handlers/room.py')
-rw-r--r--synapse/handlers/room.py10
1 files changed, 2 insertions, 8 deletions
diff --git a/synapse/handlers/room.py b/synapse/handlers/room.py
index 7511d294f3..82c16013a3 100644
--- a/synapse/handlers/room.py
+++ b/synapse/handlers/room.py
@@ -557,15 +557,9 @@ class RoomMemberHandler(BaseHandler):
         """Returns a list of roomids that the user has any of the given
         membership states in."""
 
-        app_service = yield self.store.get_app_service_by_user_id(
-            user.to_string()
+        rooms = yield self.store.get_rooms_for_user(
+            user.to_string(),
         )
-        if app_service:
-            rooms = yield self.store.get_app_service_rooms(app_service)
-        else:
-            rooms = yield self.store.get_rooms_for_user(
-                user.to_string(),
-            )
 
         # For some reason the list of events contains duplicates
         # TODO(paul): work out why because I really don't think it should