diff options
author | Erik Johnston <erik@matrix.org> | 2015-01-30 13:34:01 +0000 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2015-01-30 13:34:01 +0000 |
commit | a70a801184814d116ed5b10a952e17c45df7bfc8 (patch) | |
tree | 5242d53c0babb5699ae16a1692bdcd20f7b54942 /synapse/api | |
parent | Revert accidental bumping of angluar_sdk dep (diff) | |
download | synapse-a70a801184814d116ed5b10a952e17c45df7bfc8.tar.xz |
Fix bug where we superfluously asked for current state. Change API of /query_auth/ so that we don't duplicate events in the response.
Diffstat (limited to 'synapse/api')
-rw-r--r-- | synapse/api/auth.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/synapse/api/auth.py b/synapse/api/auth.py index 3471afd7e7..37e31d2b6f 100644 --- a/synapse/api/auth.py +++ b/synapse/api/auth.py @@ -102,6 +102,8 @@ class Auth(object): def check_host_in_room(self, room_id, host): curr_state = yield self.state.get_current_state(room_id) + logger.debug("Got curr_state %s", curr_state) + for event in curr_state: if event.type == EventTypes.Member: try: |