summary refs log tree commit diff
path: root/synapse/handlers/device.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2017-01-30 16:37:22 +0000
committerErik Johnston <erik@matrix.org>2017-01-30 16:37:22 +0000
commit828db669ecf4a631a4cab0c78d2ea8df7c531716 (patch)
tree01631edbe830b72ede07a29afebd2f4608260fa5 /synapse/handlers/device.py
parentMerge pull request #1857 from matrix-org/erikj/device_list_stream (diff)
downloadsynapse-828db669ecf4a631a4cab0c78d2ea8df7c531716.tar.xz
Use get_users_in_room and declare it iterable
Diffstat (limited to 'synapse/handlers/device.py')
-rw-r--r--synapse/handlers/device.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/device.py b/synapse/handlers/device.py
index 6fefb85890..7245d14fab 100644
--- a/synapse/handlers/device.py
+++ b/synapse/handlers/device.py
@@ -203,7 +203,7 @@ class DeviceHandler(BaseHandler):
         hosts = set()
         if self.hs.is_mine_id(user_id):
             for room_id in room_ids:
-                users = yield self.state.get_current_user_in_room(room_id)
+                users = yield self.store.get_users_in_room(room_id)
                 hosts.update(get_domain_from_id(u) for u in users)
             hosts.discard(self.server_name)