mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix impersonation in empty chat
This commit is contained in:
@ -1344,7 +1344,7 @@ async function Generate(type, automatic_trigger, force_name2) {
|
||||
} else {
|
||||
//console.log('Regenerate call detected')
|
||||
var textareaText = "";
|
||||
if (chat[chat.length - 1]['is_user']) {//If last message from You
|
||||
if (chat.length && chat[chat.length - 1]['is_user']) {//If last message from You
|
||||
|
||||
}
|
||||
else if (type !== "swipe" && !isImpersonate) {
|
||||
|
Reference in New Issue
Block a user