Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
A
arsnova-lite
Manage
Activity
Members
Labels
Plan
Issues
24
Issue boards
Milestones
Wiki
Code
Merge requests
2
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Privacy
Imprint
Contact
Snippets
Groups
Projects
Show more breadcrumbs
ARSnova
arsnova-lite
Commits
1eb890ec
Commit
1eb890ec
authored
6 years ago
by
Tom Käsler
Browse files
Options
Downloads
Patches
Plain Diff
fix setting comments on incoming messages
parent
bca64f2d
Branches
Branches containing commit
Tags
Tags containing commit
4 merge requests
!171
SWTP Comment Project
,
!170
Fix linter in pipe
,
!169
WebSocket Connector
,
!168
Filter comment list
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/app/components/shared/comment-list/comment-list.component.ts
+1
-2
1 addition, 2 deletions
.../components/shared/comment-list/comment-list.component.ts
with
1 addition
and
2 deletions
src/app/components/shared/comment-list/comment-list.component.ts
+
1
−
2
View file @
1eb890ec
...
@@ -49,14 +49,13 @@ export class CommentListComponent implements OnInit {
...
@@ -49,14 +49,13 @@ export class CommentListComponent implements OnInit {
}
}
parseIncomingMessage
(
message
:
Message
)
{
parseIncomingMessage
(
message
:
Message
)
{
console
.
log
(
message
);
const
payload
=
JSON
.
parse
(
message
.
body
).
payload
;
const
payload
=
JSON
.
parse
(
message
.
body
).
payload
;
const
c
=
new
Comment
();
const
c
=
new
Comment
();
c
.
roomId
=
this
.
roomId
;
c
.
roomId
=
this
.
roomId
;
c
.
subject
=
payload
.
subject
;
c
.
subject
=
payload
.
subject
;
c
.
body
=
payload
.
body
;
c
.
body
=
payload
.
body
;
this
.
comments
.
concat
(
c
);
this
.
comments
=
this
.
comments
.
concat
(
c
);
}
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
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