diff --git a/client/public/wsModule.js b/client/public/wsModule.js index a8bbc99..270d853 100644 --- a/client/public/wsModule.js +++ b/client/public/wsModule.js @@ -161,6 +161,7 @@ export function initWebSocket( addNotice( `Message failed: ${new Option(status).innerHTML}`, ); + renderChat(chatEl, inputContainer); } else if (id) { const replyTarget = getReplyTo(); if (replyTarget === null) { @@ -169,7 +170,6 @@ export function initWebSocket( setReplyTo(sid); } } - renderChat(chatEl, inputContainer); break; } case "name_ack": { @@ -178,8 +178,8 @@ export function initWebSocket( addNotice( `Name change failed: ${new Option(status).innerHTML}`, ); + renderChat(chatEl, inputContainer); } - renderChat(chatEl, inputContainer); break; } case "ping": {