diff options
author | Kegan Dougal <kegan@matrix.org> | 2015-02-26 14:35:28 +0000 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2015-02-26 14:35:28 +0000 |
commit | 92478e96d6f6992146102599ca96b8dcacbf3895 (patch) | |
tree | aeef94c256084367165c28ee22afaa6de6efa322 /synapse/storage/registration.py | |
parent | PEP8 and pyflakes (diff) | |
download | synapse-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.py | 7 |
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. |