Fix in-context messages line for regens

This commit is contained in:
SillyLossy
2023-05-07 16:31:09 +03:00
parent 14105bc4dd
commit 5670e924a5

View File

@@ -2324,9 +2324,9 @@ async function Generate(type, { automatic_trigger, force_name2, resolve, reject,
} //generate ends
function setInContextMessages(lastmsg, type) {
$("#chat").children().removeClass('lastInContext');
$("#chat .mes").removeClass('lastInContext');
if (type === 'swipe') {
if (type === 'swipe' || type === 'regenerate') {
lastmsg++;
}