diff --git a/src/matrix/room/joinRoom.ts b/src/matrix/room/joinRoom.ts index a4f3550e..7f2ed19e 100644 --- a/src/matrix/room/joinRoom.ts +++ b/src/matrix/room/joinRoom.ts @@ -21,7 +21,7 @@ import {RoomStatus} from "./common"; * @param roomId The id of the room to join * @param session A session instance */ -export async function joinRoom(roomId: string, session: Session) { +export async function joinRoom(roomId: string, session: Session): Promise { try { const internalRoomId = await session.joinRoom(roomId); const roomStatusObservable = await session.observeRoomStatus(internalRoomId);