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/sync.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/sync.py')
-rw-r--r-- | synapse/handlers/sync.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/synapse/handlers/sync.py b/synapse/handlers/sync.py index 7883bbd834..35a62fda47 100644 --- a/synapse/handlers/sync.py +++ b/synapse/handlers/sync.py @@ -96,7 +96,9 @@ class SyncHandler(BaseHandler): return self.current_sync_for_user(sync_config, since_token) rm_handler = self.hs.get_handlers().room_member_handler - room_ids = yield rm_handler.get_rooms_for_user(sync_config.user) + room_ids = yield rm_handler.get_joined_rooms_for_user( + sync_config.user + ) result = yield self.notifier.wait_for_events( sync_config.user, room_ids, sync_config.filter, timeout, current_sync_callback @@ -227,7 +229,7 @@ class SyncHandler(BaseHandler): logger.debug("Typing %r", typing_by_room) rm_handler = self.hs.get_handlers().room_member_handler - room_ids = yield rm_handler.get_rooms_for_user(sync_config.user) + room_ids = yield rm_handler.get_joined_rooms_for_user(sync_config.user) # TODO (mjark): Does public mean "published"? published_rooms = yield self.store.get_rooms(is_public=True) |