summary refs log tree commit diff
path: root/synapse/handlers/profile.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-03-09 16:43:09 +0000
committerErik Johnston <erik@matrix.org>2015-03-09 16:43:09 +0000
commit8e28db5cc9fa55ec9ceb641ac91dcd58c2c633d5 (patch)
tree4a74f4d6286ba809df43e23f4c61724465fff076 /synapse/handlers/profile.py
parentD'oh: underscore, not hyphen (diff)
downloadsynapse-8e28db5cc9fa55ec9ceb641ac91dcd58c2c633d5.tar.xz
Change room handlers get_rooms_for_user to get_joined_rooms_for_user. This uses the a storage api that is cached.
Diffstat (limited to 'synapse/handlers/profile.py')
-rw-r--r--synapse/handlers/profile.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/synapse/handlers/profile.py b/synapse/handlers/profile.py
index 2ddf9d5378..ee2732b848 100644
--- a/synapse/handlers/profile.py
+++ b/synapse/handlers/profile.py
@@ -197,9 +197,8 @@ class ProfileHandler(BaseHandler):
 
         self.ratelimit(user.to_string())
 
-        joins = yield self.store.get_rooms_for_user_where_membership_is(
+        joins = yield self.store.get_rooms_for_user(
             user.to_string(),
-            [Membership.JOIN],
         )
 
         for j in joins: