Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Chatterbox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
mirrored_repos
element-hq
Chatterbox
Commits
f929d108
Commit
f929d108
authored
3 years ago
by
Midhun Suresh
Browse files
Options
Downloads
Patches
Plain Diff
Rename showRoom to mountTimeline
parent
47f0d96c
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/Hydrogen.ts
+1
-1
1 addition, 1 deletion
src/Hydrogen.ts
src/main.ts
+2
-2
2 additions, 2 deletions
src/main.ts
src/types/IMatrixClient.ts
+2
-2
2 additions, 2 deletions
src/types/IMatrixClient.ts
with
5 additions
and
5 deletions
src/Hydrogen.ts
+
1
−
1
View file @
f929d108
...
@@ -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
,
...
...
This diff is collapsed.
Click to expand it.
src/main.ts
+
2
−
2
View file @
f929d108
...
@@ -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
This diff is collapsed.
Click to expand it.
src/types/IMatrixClient.ts
+
2
−
2
View file @
f929d108
...
@@ -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
>
;
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment