diff options
author | Kegan Dougal <kegan@matrix.org> | 2015-06-17 17:26:03 +0100 |
---|---|---|
committer | Kegan Dougal <kegan@matrix.org> | 2015-06-17 17:26:03 +0100 |
commit | d88e20cdb988a44155ef087ef28cd37c982cfe5d (patch) | |
tree | 46e276f7db348e2a186943a94e733880384d620c /synapse/handlers | |
parent | Correct -H SERVER_NAME in config-missing complaint message (diff) | |
download | synapse-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.py | 2 |
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 |