mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Merge branch 'dev' of https://github.com/SillyLossy/TavernAI into dev
This commit is contained in:
@ -2334,7 +2334,7 @@ function saveReply(type, getMessage, this_mes_is_name, title) {
|
|||||||
getMessage = img.getMessage;
|
getMessage = img.getMessage;
|
||||||
|
|
||||||
if (type === 'swipe') {
|
if (type === 'swipe') {
|
||||||
chat[chat.length - 1]['swipes'][chat[chat.length - 1]['swipes'].length] = getMessage;
|
chat[chat.length - 1]['swipes'].length++;
|
||||||
if (chat[chat.length - 1]['swipe_id'] === chat[chat.length - 1]['swipes'].length - 1) {
|
if (chat[chat.length - 1]['swipe_id'] === chat[chat.length - 1]['swipes'].length - 1) {
|
||||||
chat[chat.length - 1]['title'] = title;
|
chat[chat.length - 1]['title'] = title;
|
||||||
chat[chat.length - 1]['mes'] = getMessage;
|
chat[chat.length - 1]['mes'] = getMessage;
|
||||||
@ -2379,6 +2379,12 @@ function saveReply(type, getMessage, this_mes_is_name, title) {
|
|||||||
saveImageToMessage(img, chat[chat.length - 1]);
|
saveImageToMessage(img, chat[chat.length - 1]);
|
||||||
addOneMessage(chat[chat.length - 1]);
|
addOneMessage(chat[chat.length - 1]);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const item = chat[chat.length - 1];
|
||||||
|
if (item['swipe_id'] !== undefined) {
|
||||||
|
item['swipes'][item['swipes'].length - 1] = item['mes'];
|
||||||
|
}
|
||||||
|
|
||||||
return { type, getMessage };
|
return { type, getMessage };
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user