use custom flag instead

72f91a4994dd4c50e26d98c349ece1b9b6e743f9

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

1 files changed, +3 -2Showing whitespace changes
public/script.js+3 -2
@@ -5301,8 +5301,9 @@ function formatMessageHistoryItem(chatItem, isInstruct, forceOutputSequence) {
5301 const itemName = chatItem.is_user ? chatItem['name'] : characterName;5301 const itemName = chatItem.is_user ? chatItem['name'] : characterName;
5302 const shouldPrependName = !isNarratorType;5302 const shouldPrependName = !isNarratorType;
53035303
5304 // Don't format messages with undefined content5304 // 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) {
5306 return '';5307 return '';
5307 }5308 }
53085309