summary refs log tree commit diff
path: root/synapse/handlers
diff options
context:
space:
mode:
authorKegan Dougal <kegan@matrix.org>2015-06-17 17:26:03 +0100
committerKegan Dougal <kegan@matrix.org>2015-06-17 17:26:03 +0100
commitd88e20cdb988a44155ef087ef28cd37c982cfe5d (patch)
tree46e276f7db348e2a186943a94e733880384d620c /synapse/handlers
parentCorrect -H SERVER_NAME in config-missing complaint message (diff)
downloadsynapse-d88e20cdb988a44155ef087ef28cd37c982cfe5d.tar.xz
Fix bug where synapse was sending AS user queries incorrectly.
Bug introduced in 92b20713d7c6346aeb20dc09963081e472752bb5
which reversed the comparison when checking if a user existed
in the users table. Added UTs to prevent this happening again.
Diffstat (limited to 'synapse/handlers')
-rw-r--r--synapse/handlers/appservice.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/synapse/handlers/appservice.py b/synapse/handlers/appservice.py
index 8269482e47..1240e51649 100644
--- a/synapse/handlers/appservice.py
+++ b/synapse/handlers/appservice.py
@@ -177,7 +177,7 @@ class ApplicationServicesHandler(object):
             return
 
         user_info = yield self.store.get_user_by_id(user_id)
-        if not user_info:
+        if user_info:
             defer.returnValue(False)
             return