mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Rename variable
This commit is contained in:
parent
44eddd0d6b
commit
88091622db
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user