diff options
author | Erik Johnston <erik@matrix.org> | 2015-03-09 16:43:09 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-03-09 16:43:09 +0000 |
commit | 8e28db5cc9fa55ec9ceb641ac91dcd58c2c633d5 (patch) | |
tree | 4a74f4d6286ba809df43e23f4c61724465fff076 /synapse/handlers/profile.py | |
parent | D'oh: underscore, not hyphen (diff) | |
download | synapse-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.py | 3 |
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: |