Fix empty buffers on switch
Fixes: c6f9aae84c ("Fix TypeError when sending message")
This commit is contained in:
@@ -146,6 +146,8 @@ function createBuffer(name) {
|
|||||||
}
|
}
|
||||||
// TODO: set time tag if missing
|
// TODO: set time tag if missing
|
||||||
|
|
||||||
|
buf.messages.push(msg);
|
||||||
|
|
||||||
if (activeBuffer === buf) {
|
if (activeBuffer === buf) {
|
||||||
bufferElt.appendChild(createMessageElement(msg));
|
bufferElt.appendChild(createMessageElement(msg));
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user