Fix empty buffers on switch

Fixes: c6f9aae84c2b ("Fix TypeError when sending message")
This commit is contained in:
Simon Ser 2020-06-24 11:12:36 +02:00
parent eef5609dcf
commit f9972dae5f
No known key found for this signature in database
GPG Key ID: 0FDE7BE0E88F5E48

View File

@ -146,6 +146,8 @@ function createBuffer(name) {
}
// TODO: set time tag if missing
buf.messages.push(msg);
if (activeBuffer === buf) {
bufferElt.appendChild(createMessageElement(msg));
}