Skip to content

Commit

Permalink
Give options to RoomJoiner.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gnuxie committed Sep 17, 2024
1 parent 34299ee commit db8e77b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion src/Client/RoomJoiner.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,17 @@ import {
import { ActionResult } from '../Interface/Action';
import { RoomResolver } from './RoomResolver';

type JoinRoomOptions = {
/**
* Whether to call `/join` regardless of whether we know we are
* already joined to the room.
*/
alwaysCallJoin?: boolean;
};

export interface RoomJoiner extends RoomResolver {
joinRoom(
room: MatrixRoomReference | StringRoomID | StringRoomAlias
room: MatrixRoomReference | StringRoomID | StringRoomAlias,
options?: JoinRoomOptions
): Promise<ActionResult<MatrixRoomID>>;
}

0 comments on commit db8e77b

Please sign in to comment.