diff --git a/src/Hydrogen.ts b/src/Hydrogen.ts index cc07af758be4e8391c627ad4fe55a587874bead9..0e3ae3cdc09155e221481379f0c94fc9afa0d91d 100644 --- a/src/Hydrogen.ts +++ b/src/Hydrogen.ts @@ -46,7 +46,7 @@ export class Hydrogen implements IMatrixClient { } } - async showRoom(roomId: string): Promise<void> { + async mountTimeline(roomId: string): Promise<void> { const room = this._session.rooms.get(roomId) ?? await this._joinRoom(roomId); const roomVm = new RoomViewModel({ room, diff --git a/src/main.ts b/src/main.ts index 35cc726034a5956588de7c5baf44a6c1b920bee5..318564b0a2e6de456e01fdd209dd0be5863fc809 100644 --- a/src/main.ts +++ b/src/main.ts @@ -38,7 +38,7 @@ async function main() { } console.log("Attempting to mount Timeline"); - await hydrogen.showRoom(auto_join_room); + await hydrogen.mountTimeline(auto_join_room); console.log("Mounted Timeline"); } @@ -52,4 +52,4 @@ function generateRandomString(length: number): string { return result; } -main(); \ No newline at end of file +main(); diff --git a/src/types/IMatrixClient.ts b/src/types/IMatrixClient.ts index 6d6e23c92880701a0c077fb631cb585a850aa352..a1d6df1a73053d33a7bbc79bfd4bd23eadc42214 100644 --- a/src/types/IMatrixClient.ts +++ b/src/types/IMatrixClient.ts @@ -13,9 +13,9 @@ export interface IMatrixClient { attemptStartWithExistingSession(): Promise<boolean>; /** - * Renders a timeline for the given room. + * Renders a timeline and message composer for the given room. * @remarks This method should join the room if needed. * @param roomId internal room-id, not alias */ - showRoom(roomId: string): Promise<void>; + mountTimeline(roomId: string): Promise<void>; }