summary refs log tree commit diff
path: root/synapse/storage/registration.py
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2015-02-26 14:35:28 +0000
committerKegan Dougal <kegan@matrix.org>2015-02-26 14:35:28 +0000
commit92478e96d6f6992146102599ca96b8dcacbf3895 (patch)
treeaeef94c256084367165c28ee22afaa6de6efa322 /synapse/storage/registration.py
parentPEP8 and pyflakes (diff)
downloadsynapse-92478e96d6f6992146102599ca96b8dcacbf3895.tar.xz
Finish impl to extract all room IDs an AS may be interested in when polling the event stream.
Diffstat (limited to 'synapse/storage/registration.py')
-rw-r--r--synapse/storage/registration.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/synapse/storage/registration.py b/synapse/storage/registration.py
index 029b07cc66..7aff3dbd33 100644
--- a/synapse/storage/registration.py
+++ b/synapse/storage/registration.py
@@ -92,6 +92,13 @@ class RegistrationStore(SQLBaseStore):
             query, user_id
         )
 
+    def get_all_users(self):
+        query = ("SELECT users.name FROM users")
+        return self._execute(
+            self.cursor_to_dict,
+            query
+        )
+
     def get_user_by_token(self, token):
         """Get a user from the given access token.