This commit is contained in:
2026-03-28 12:48:48 -04:00
parent de0d253b31
commit ac66884e96

View File

@@ -161,6 +161,7 @@ export function initWebSocket(
addNotice( addNotice(
`<span class="err">Message failed: ${new Option(status).innerHTML}</span>`, `<span class="err">Message failed: ${new Option(status).innerHTML}</span>`,
); );
renderChat(chatEl, inputContainer);
} else if (id) { } else if (id) {
const replyTarget = getReplyTo(); const replyTarget = getReplyTo();
if (replyTarget === null) { if (replyTarget === null) {
@@ -169,7 +170,6 @@ export function initWebSocket(
setReplyTo(sid); setReplyTo(sid);
} }
} }
renderChat(chatEl, inputContainer);
break; break;
} }
case "name_ack": { case "name_ack": {
@@ -178,8 +178,8 @@ export function initWebSocket(
addNotice( addNotice(
`<span class="err">Name change failed: ${new Option(status).innerHTML}</span>`, `<span class="err">Name change failed: ${new Option(status).innerHTML}</span>`,
); );
renderChat(chatEl, inputContainer);
} }
renderChat(chatEl, inputContainer);
break; break;
} }
case "ping": { case "ping": {