Skip to content
Snippets Groups Projects
Commit f929d108 authored by Midhun Suresh's avatar Midhun Suresh
Browse files

Rename showRoom to mountTimeline

parent 47f0d96c
No related branches found
No related tags found
No related merge requests found
...@@ -46,7 +46,7 @@ export class Hydrogen implements IMatrixClient { ...@@ -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 room = this._session.rooms.get(roomId) ?? await this._joinRoom(roomId);
const roomVm = new RoomViewModel({ const roomVm = new RoomViewModel({
room, room,
......
...@@ -38,7 +38,7 @@ async function main() { ...@@ -38,7 +38,7 @@ async function main() {
} }
console.log("Attempting to mount Timeline"); console.log("Attempting to mount Timeline");
await hydrogen.showRoom(auto_join_room); await hydrogen.mountTimeline(auto_join_room);
console.log("Mounted Timeline"); console.log("Mounted Timeline");
} }
...@@ -52,4 +52,4 @@ function generateRandomString(length: number): string { ...@@ -52,4 +52,4 @@ function generateRandomString(length: number): string {
return result; return result;
} }
main(); main();
\ No newline at end of file
...@@ -13,9 +13,9 @@ export interface IMatrixClient { ...@@ -13,9 +13,9 @@ export interface IMatrixClient {
attemptStartWithExistingSession(): Promise<boolean>; 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. * @remarks This method should join the room if needed.
* @param roomId internal room-id, not alias * @param roomId internal room-id, not alias
*/ */
showRoom(roomId: string): Promise<void>; mountTimeline(roomId: string): Promise<void>;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment