Преглед изворни кода

Create hooks for user search ability

pull/2722/head
Luke D Iremadze пре 2 година
родитељ
комит
1f0da9f744
2 измењених фајлова са 7 додато и 2 уклоњено
  1. +5
    -0
      roles/custom/matrix-synapse/defaults/main.yml
  2. +2
    -2
      roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2

+ 5
- 0
roles/custom/matrix-synapse/defaults/main.yml Прегледај датотеку

@@ -334,6 +334,11 @@ matrix_synapse_limit_profile_requests_to_users_who_share_rooms: false
# Defaults to 'true'. # Defaults to 'true'.
matrix_synapse_include_profile_data_on_invite: true matrix_synapse_include_profile_data_on_invite: true



# User search behaviour
matrix_synapse_search_all_users: false
matrix_synapse_prefer_local_users: false

# Controls whether people with access to the homeserver can register by themselves. # Controls whether people with access to the homeserver can register by themselves.
matrix_synapse_enable_registration: false matrix_synapse_enable_registration: false
# Controls whether people with access to the homeserver can register by themselves without verification (email/msisdn/token) # Controls whether people with access to the homeserver can register by themselves without verification (email/msisdn/token)


+ 2
- 2
roles/custom/matrix-synapse/templates/synapse/homeserver.yaml.j2 Прегледај датотеку

@@ -2630,7 +2630,7 @@ user_directory:
# Uncomment to return search results containing all known users, even if that # Uncomment to return search results containing all known users, even if that
# user does not share a room with the requester. # user does not share a room with the requester.
# #
#search_all_users: true
search_all_users: {{ matrix_synapse_search_all_users|to_json }}


# Defines whether to prefer local users in search query results. # Defines whether to prefer local users in search query results.
# If True, local users are more likely to appear above remote users # If True, local users are more likely to appear above remote users
@@ -2639,7 +2639,7 @@ user_directory:
# Uncomment to prefer local over remote users in user directory search # Uncomment to prefer local over remote users in user directory search
# results. # results.
# #
#prefer_local_users: true
prefer_local_users: {{ matrix_synapse_prefer_local_users|to_json }}




# User Consent configuration # User Consent configuration


Loading…
Откажи
Сачувај