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
4510e6a7
Commit
4510e6a7
authored
3 years ago
by
RMidhunSuresh
Browse files
Options
Downloads
Patches
Plain Diff
Use composer vm from room vm
parent
75532402
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/viewmodels/ChatterboxViewModel.ts
+2
-4
2 additions, 4 deletions
src/viewmodels/ChatterboxViewModel.ts
with
2 additions
and
4 deletions
src/viewmodels/ChatterboxViewModel.ts
+
2
−
4
View file @
4510e6a7
import
{
RoomViewModel
,
ViewModel
,
ComposerViewModel
,
RoomStatus
}
from
"
hydrogen-view-sdk
"
;
import
{
RoomViewModel
,
ViewModel
,
RoomStatus
}
from
"
hydrogen-view-sdk
"
;
export
class
ChatterboxViewModel
extends
ViewModel
{
private
_messageComposerViewModel
?:
typeof
ComposerViewModel
;
private
_roomViewModel
?:
typeof
RoomViewModel
;
private
_loginPromise
:
Promise
<
void
>
;
...
...
@@ -31,7 +30,6 @@ export class ChatterboxViewModel extends ViewModel {
navigation
:
this
.
navigation
,
});
await
this
.
_roomViewModel
.
load
();
this
.
_messageComposerViewModel
=
new
ComposerViewModel
(
this
.
_roomViewModel
);
this
.
emitChange
(
"
timelineViewModel
"
);
}
...
...
@@ -95,7 +93,7 @@ export class ChatterboxViewModel extends ViewModel {
}
get
messageComposerViewModel
()
{
return
this
.
_
messageC
omposerViewModel
;
return
this
.
_
roomViewModel
?.
c
omposerViewModel
;
}
get
roomViewModel
()
{
...
...
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