Finished up some chat stuff

This commit is contained in:
Jonas Dellinger
2017-05-28 15:27:26 +02:00
parent f3a2ddc076
commit d5864415c3
3 changed files with 22 additions and 16 deletions

View File

@@ -139,7 +139,6 @@ window.APP = {
message: this.message,
}));
this.oldMessages.unshift(this.message);
this.message = '';
this.oldMessagesIndex = -1;
this.hideInput();
} else {
@@ -151,6 +150,7 @@ window.APP = {
if (canceled) {
post('http://chat/chatResult', JSON.stringify({ canceled }));
}
this.message = '';
this.showInput = false;
clearInterval(this.focusTimer);
this.resetShowWindowTimer();