Merge pull request #2674 from SillyTavern/random-fix

Suspend macros in first messages
This commit is contained in:
Cohee 2024-08-20 20:58:54 +03:00 committed by GitHub
commit 7d2e35d950
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1880,6 +1880,7 @@ export function messageFormatting(mes, ch_name, isSystem, isUser, messageId) {
if (Number(messageId) === 0 && !isSystem && !isUser) {
mes = substituteParams(mes, undefined, ch_name);
chat[messageId] && (chat[messageId].mes = mes);
}
mesForShowdownParse = mes;