Skip to main content

search_users_handler

Function search_users_handler 

Source
async fn search_users_handler(
    database: State<DefaultDb>,
    __arg1: AuthenticatedClientRequest<Request>,
) -> Result<ArminiusResponse<Response>, InternalServerError>
Expand description

Handler for POST /_matrix/client/v3/user_directory/search (See https://spec.matrix.org/latest/client-server-api/#post_matrixclientv3user_directorysearch).

Search the user directory. Currently, this consists of all local users whose user ID or display name contains the search term.

Warning: No limits of user visibility or maximum result count are implemented. Unexpected matches may occur if the search query contains characters SQL interprets as wildcards.