matrix-js-sdk
c2e00468 - Add API for POST /user_directory/search

Comment changes are shownComment changes are hidden
Commit
8 years ago
Add API for POST /user_directory/search This takes a JSON body of the form: ```json { "term": "search term", "limit": 42, } ``` where "term" is the term to match against user IDs, display names and domains and "limit" is the maximum number of results to return. The response body looks like ```json { "results ": [ { "user_id": "@someid:mydomain.com", "display_name": "Some Name", "avatar_url": "mx://..." }, ... ], "limited": false } ``` where "limited" indicates whether the "limit" was used to truncate the list.
Author
Luke Barnard
Parents
  • src
    • File
      base-apis.js