From 4e907ff3e89b9254810efa60c83e88e19ea9dc0b Mon Sep 17 00:00:00 2001 From: Wolfsblvt Date: Sat, 21 Sep 2024 23:14:31 +0200 Subject: [PATCH] Fix /hide not targeting not visible messages --- public/scripts/chats.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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)); }