summary refs log tree commit diff
path: root/synapse/handlers/profile.py
diff options
context:
space:
mode:
authorMatthew Hodgson <matthew@matrix.org>2017-12-04 14:58:39 +0000
committerMatthew Hodgson <matthew@matrix.org>2017-12-04 14:58:39 +0000
commit1bd40ca73e1a6dc83d0a6c96f52071553960b3a8 (patch)
tree644933c87362e2eac73ae69b9bd94f444813fd44 /synapse/handlers/profile.py
parentMerge branch 'develop' into matthew/search-all-local-users (diff)
downloadsynapse-1bd40ca73e1a6dc83d0a6c96f52071553960b3a8.tar.xz
switch to a simpler 'search_all_users' button as per review feedback
Diffstat (limited to 'synapse/handlers/profile.py')
-rw-r--r--synapse/handlers/profile.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/synapse/handlers/profile.py b/synapse/handlers/profile.py
index 0a394a10b2..50e81a20e4 100644
--- a/synapse/handlers/profile.py
+++ b/synapse/handlers/profile.py
@@ -141,7 +141,7 @@ class ProfileHandler(BaseHandler):
             target_user.localpart, new_displayname
         )
 
-        if self.hs.config.user_directory_include_pattern:
+        if self.hs.config.user_directory_search_all_users:
             profile = yield self.store.get_profileinfo(target_user.localpart)
             yield self.user_directory_handler.handle_local_profile_change(
                 target_user.to_string(), profile
@@ -191,7 +191,7 @@ class ProfileHandler(BaseHandler):
             target_user.localpart, new_avatar_url
         )
 
-        if self.hs.config.user_directory_include_pattern:
+        if self.hs.config.user_directory_search_all_users:
             profile = yield self.store.get_profileinfo(target_user.localpart)
             yield self.user_directory_handler.handle_local_profile_change(
                 target_user.user_id, profile