diff --git a/public/scripts/chats.js b/public/scripts/chats.js index cd6b45808..75ad746b9 100644 --- a/public/scripts/chats.js +++ b/public/scripts/chats.js @@ -135,10 +135,11 @@ export async function hideChatMessageRange(start, end, unhide) { const message = chat[messageId]; if (!message) continue; + message.is_system = hide; + + // Also toggle "hidden" state for all visible messages const messageBlock = $(`.mes[mesid="${messageId}"]`); if (!messageBlock.length) continue; - - message.is_system = hide; messageBlock.attr('is_system', String(hide)); }