use custom flag instead

72f91a4994dd4c50e26d98c349ece1b9b6e743f9

qvink <qvink@users.noreply.github.com>

1 files changed, +3 -2Ignore whitespace
public/script.js+3 -2
@@ -5301,8 +5301,9 @@ function formatMessageHistoryItem(chatItem, isInstruct, forceOutputSequence) {
53015301 const itemName = chatItem.is_user ? chatItem['name'] : characterName;
53025302 const shouldPrependName = !isNarratorType;
53035303
5304- // Don't format messages with undefined content
5304+ // If this flag is set, completely ignore the message.
5305- if (chatItem.mes === undefined) {
5305+ // This can be used to hide messages without affecting the number of messages in the chat.
5306+ if (chatItem.ignore_formatting) {
53065307 return '';
53075308 }
53085309