summary refs log tree commit diff
path: root/synapse/api/auth.py
diff options
context:
space:
mode:
authorErik Johnston <erik@matrix.org>2015-01-30 13:34:01 +0000
committerErik Johnston <erik@matrix.org>2015-01-30 13:34:01 +0000
commita70a801184814d116ed5b10a952e17c45df7bfc8 (patch)
tree5242d53c0babb5699ae16a1692bdcd20f7b54942 /synapse/api/auth.py
parentRevert accidental bumping of angluar_sdk dep (diff)
downloadsynapse-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/auth.py')
-rw-r--r--synapse/api/auth.py2
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: