From 1898c4892e5a6c28061f5b4139f5903af6727886 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Mon, 12 Sep 2022 23:44:51 +0530 Subject: [PATCH] Specify return type --- src/matrix/room/joinRoom.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);