Skip to main content

search_users_route

Function search_users_route 

Source
pub(crate) async fn search_users_route(
    __arg0: State<State>,
    body: Ruma<Request>,
) -> Result<Response>
Expand description

Searches known users at POST /_matrix/client/r0/user_directory/search.

Hides local users who neither belong to rooms with public join rules nor share a room with the sender unless directory.users.show_all_local is enabled. Hides appservice senders and users in exclusive appservice user namespaces unless directory.users.show_appservice is enabled.