Skip to content

Commit

Permalink
Added support for extra data in body for usersearch REST call
Browse files Browse the repository at this point in the history
  • Loading branch information
thoraj committed Aug 16, 2024
1 parent ff4e553 commit 4094de6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/client.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8548,9 +8548,10 @@ export class MatrixClient extends TypedEventEmitter<EmittedEvents, ClientEventHa
* @param options.limit - the maximum number of results to return. The server will apply a limit if unspecified.
* @returns Promise which resolves: an array of results.
*/
public searchUserDirectory({ term, limit }: { term: string; limit?: number }): Promise<IUserDirectoryResponse> {
public searchUserDirectory({ term, limit }: { term: string; limit?: number }, extraBodyArgs: {[key:string]: string}|null = {}): Promise<IUserDirectoryResponse> {

Check failure on line 8551 in src/client.ts

View workflow job for this annotation

GitHub Actions / ESLint

Expected a space after the ':'
const body: Body = {
search_term: term,
search_term: term,
...extraBodyArgs

Check failure on line 8554 in src/client.ts

View workflow job for this annotation

GitHub Actions / ESLint

Missing trailing comma
};

if (limit !== undefined) {
Expand Down

0 comments on commit 4094de6

Please sign in to comment.