diff options
author | Matthew Hodgson <matthew@matrix.org> | 2017-12-04 14:58:39 +0000 |
---|---|---|
committer | Matthew Hodgson <matthew@matrix.org> | 2017-12-04 14:58:39 +0000 |
commit | 1bd40ca73e1a6dc83d0a6c96f52071553960b3a8 (patch) | |
tree | 644933c87362e2eac73ae69b9bd94f444813fd44 /synapse/config | |
parent | Merge branch 'develop' into matthew/search-all-local-users (diff) | |
download | synapse-1bd40ca73e1a6dc83d0a6c96f52071553960b3a8.tar.xz |
switch to a simpler 'search_all_users' button as per review feedback
Diffstat (limited to 'synapse/config')
-rw-r--r-- | synapse/config/user_directory.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/synapse/config/user_directory.py b/synapse/config/user_directory.py index cf358fe8a9..55b4e553ee 100644 --- a/synapse/config/user_directory.py +++ b/synapse/config/user_directory.py @@ -22,19 +22,20 @@ class UserDirectoryConfig(Config): """ def read_config(self, config): - self.user_directory_include_pattern = None + self.user_directory_search_all_users = False user_directory_config = config.get("user_directory", None) if user_directory_config: - self.user_directory_include_pattern = ( - user_directory_config.get("include_pattern", None) + self.user_directory_search_all_users = ( + user_directory_config.get("search_all_users", False) ) def default_config(self, config_dir_path, server_name, **kwargs): return """ # User Directory configuration - # 'include_pattern' defines an optional SQL LIKE pattern when querying the - # user directory in addition to publicly visible users. Defaults to None. + # 'search_all_users' defines whether to search all users visible to your HS + # when searching the user directory, rather than limiting to users visible + # in public rooms. Defaults to false. # #user_directory: - # include_pattern: "%%:%s" - """ % (server_name) + # search_all_users: false + """ |