Rename old handler for easier comprehension

This commit is contained in:
Kristóf Tóth 2018-06-25 17:24:20 +02:00
parent 9908965a07
commit ef4f467457

View File

@ -38,7 +38,7 @@ export class MessagesComponent implements OnInit {
}
ngOnInit() {
this.newMessage.subscribe(this.handleMessage.bind(this));
this.newMessage.subscribe(this.writeMessage.bind(this));
this.messageQueueAttender.messageInQueue.subscribe(
(value) => this.messageInQueue = value
);
@ -55,7 +55,7 @@ export class MessagesComponent implements OnInit {
);
}
handleMessage(data: MessagesMessage) {
writeMessage(data: MessagesMessage) {
data.message = this.convert(data.message);
this.messages.push(data);
this.changeDetectorRef.detectChanges();