From a54aaf42add9e32f82c1fa8a60323bb350e63362 Mon Sep 17 00:00:00 2001 From: Neil Johnson Date: Tue, 13 Nov 2018 16:15:24 +0000 Subject: fix boolean typing --- synapse/storage/user_directory.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/synapse/storage/user_directory.py b/synapse/storage/user_directory.py index ae7ff5ec73..a77c9a0579 100644 --- a/synapse/storage/user_directory.py +++ b/synapse/storage/user_directory.py @@ -785,7 +785,7 @@ class UserDirectoryStore(SQLBaseStore): desc="is_support_user", ) - defer.returnValue(res if res == UserTypes.SUPPORT else False) + defer.returnValue(True if res == UserTypes.SUPPORT else False) def _parse_query_sqlite(search_term): -- cgit 1.4.1