Skip to content
Snippets Groups Projects
Commit 1eb890ec authored by Tom Käsler's avatar Tom Käsler
Browse files

fix setting comments on incoming messages

parent bca64f2d
No related merge requests found
...@@ -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);
} }
} }
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment