mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 03:25:12 +01:00
Specify return type
This commit is contained in:
parent
88091622db
commit
1898c4892e
@ -21,7 +21,7 @@ import {RoomStatus} from "./common";
|
|||||||
* @param roomId The id of the room to join
|
* @param roomId The id of the room to join
|
||||||
* @param session A session instance
|
* @param session A session instance
|
||||||
*/
|
*/
|
||||||
export async function joinRoom(roomId: string, session: Session) {
|
export async function joinRoom(roomId: string, session: Session): Promise<string> {
|
||||||
try {
|
try {
|
||||||
const internalRoomId = await session.joinRoom(roomId);
|
const internalRoomId = await session.joinRoom(roomId);
|
||||||
const roomStatusObservable = await session.observeRoomStatus(internalRoomId);
|
const roomStatusObservable = await session.observeRoomStatus(internalRoomId);
|
||||||
|
Loading…
Reference in New Issue
Block a user