matrix-react-sdk
Version:
SDK for matrix.org using React
10 lines (9 loc) • 355 B
TypeScript
import { MatrixClient, Room } from "matrix-js-sdk/src/matrix";
/**
* Tries to find a DM room with a specific user.
*
* @param {MatrixClient} client
* @param {string} userId ID of the user to find the DM for
* @returns {Room | undefined} Room if found
*/
export declare function findDMForUser(client: MatrixClient, userId: string): Room | undefined;