mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Short formatting path for empty messages
This commit is contained in:
@@ -1474,13 +1474,11 @@ export async function reloadCurrentChat() {
|
||||
}
|
||||
|
||||
function messageFormatting(mes, ch_name, isSystem, isUser) {
|
||||
if (mes) {
|
||||
mesForShowdownParse = mes;
|
||||
if (!mes) {
|
||||
return '';
|
||||
}
|
||||
|
||||
if (!mes) {
|
||||
mes = '';
|
||||
}
|
||||
mesForShowdownParse = mes;
|
||||
|
||||
// Force isSystem = false on comment messages so they get formatted properly
|
||||
if (ch_name === COMMENT_NAME_DEFAULT && isSystem && !isUser) {
|
||||
|
Reference in New Issue
Block a user