Rename variable

This commit is contained in:
RMidhunSuresh 2022-09-12 23:21:55 +05:30
parent 44eddd0d6b
commit 88091622db
No known key found for this signature in database

View File

@ -24,8 +24,8 @@ import {RoomStatus} from "./common";
export async function joinRoom(roomId: string, session: Session) { export async function joinRoom(roomId: string, session: Session) {
try { try {
const internalRoomId = await session.joinRoom(roomId); const internalRoomId = await session.joinRoom(roomId);
const roomStatusObserver = await session.observeRoomStatus(internalRoomId); const roomStatusObservable = await session.observeRoomStatus(internalRoomId);
await roomStatusObserver.waitFor((status: RoomStatus) => status === RoomStatus.Joined); await roomStatusObservable.waitFor((status: RoomStatus) => status === RoomStatus.Joined);
return internalRoomId; return internalRoomId;
} }
catch (e) { catch (e) {