From f929d1085f27ef3716bb01e19a7380813e22f29c Mon Sep 17 00:00:00 2001
From: Midhun Suresh <midhunr@element.io>
Date: Sat, 1 Jan 2022 11:33:32 +0530
Subject: [PATCH] Rename showRoom to mountTimeline

---
 src/Hydrogen.ts            | 2 +-
 src/main.ts                | 4 ++--
 src/types/IMatrixClient.ts | 4 ++--
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/src/Hydrogen.ts b/src/Hydrogen.ts
index cc07af7..0e3ae3c 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 35cc726..318564b 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 6d6e23c..a1d6df1 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>;
 }
-- 
GitLab