Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement room join UI #870

Merged
merged 13 commits into from
Sep 20, 2022
Prev Previous commit
Next Next commit
Specify return type
MidhunSureshR committed Sep 12, 2022
commit 1898c4892e5a6c28061f5b4139f5903af6727886
2 changes: 1 addition & 1 deletion src/matrix/room/joinRoom.ts
Original file line number Diff line number Diff line change
@@ -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<string> {
try {
const internalRoomId = await session.joinRoom(roomId);
const roomStatusObservable = await session.observeRoomStatus(internalRoomId);