mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix old message left swipe
This commit is contained in:
@@ -6029,7 +6029,7 @@ function swipe_left() { // when we swipe left..but no generation.
|
|||||||
this_mes_div.css('height', this_mes_div_height);
|
this_mes_div.css('height', this_mes_div_height);
|
||||||
const this_mes_block_height = this_mes_block[0].scrollHeight;
|
const this_mes_block_height = this_mes_block[0].scrollHeight;
|
||||||
chat[chat.length - 1]['mes'] = chat[chat.length - 1]['swipes'][chat[chat.length - 1]['swipe_id']];
|
chat[chat.length - 1]['mes'] = chat[chat.length - 1]['swipes'][chat[chat.length - 1]['swipe_id']];
|
||||||
chat[chat.length - 1]['send_date'] = chat[chat.length - 1]['swipe_info'][chat[chat.length - 1]['swipe_id']]['send_date']; //load the last mes box with the latest generation
|
chat[chat.length - 1]['send_date'] = chat[chat.length - 1].swipe_info[chat[chat.length - 1]['swipe_id']]?.send_date || chat[chat.length - 1].send_date; //load the last mes box with the latest generation
|
||||||
|
|
||||||
if (chat[chat.length - 1].extra) {
|
if (chat[chat.length - 1].extra) {
|
||||||
// if message has memory attached - remove it to allow regen
|
// if message has memory attached - remove it to allow regen
|
||||||
|
Reference in New Issue
Block a user