Fix TypeError when sending message

This commit is contained in:
Simon Ser 2020-06-21 16:26:41 +02:00
parent e1dccb8562
commit c6f9aae84c
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

View File

@ -147,7 +147,10 @@ function createBuffer(name) {
messages: [],
addMessage: function(msg) {
buf.messages.push(msg);
if (!msg.tags) {
msg.tags = {};
}
// TODO: set time tag if missing
if (activeBuffer === buf) {
bufferElt.appendChild(createMessageElement(msg));