mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
@1.2.5 CAI Import chat fix
This commit is contained in:
@ -2882,7 +2882,7 @@
|
|||||||
<div id="options">
|
<div id="options">
|
||||||
<div class="options-content">
|
<div class="options-content">
|
||||||
<a id="option_start_new_chat"><img src="img/save_and_start_new_chat.png" width="20" height="20">Start new chat</a>
|
<a id="option_start_new_chat"><img src="img/save_and_start_new_chat.png" width="20" height="20">Start new chat</a>
|
||||||
<a id="option_select_chat"><img src="img/book6.png" width="20" height="20" style="opacity: 0.0;"><img src="img/book6.png" style="width: 21px;height: 21px;position: absolute;top: 59px;left: 15px; opacity: 0.5;">Select chat</a><!--<img src="img/book6.png" style="width: 21px;height: 21px;position: absolute;top: 14px;left: 16px; opacity: 0.5;">Select chat</a>-->
|
<a id="option_select_chat"><img src="img/book6.png" width="20" height="20" style="opacity: 0.0;"><img src="img/book6.png" style="width: 21px;height: 21px;position: absolute;top: 59px;left: 15px; opacity: 0.5;">Select chats</a><!--<img src="img/book6.png" style="width: 21px;height: 21px;position: absolute;top: 14px;left: 16px; opacity: 0.5;">Select chat</a>-->
|
||||||
|
|
||||||
<hr>
|
<hr>
|
||||||
<a id="option_delete_mes"><img src="img/del_mes.png" width="20" height="20">Delete message</a>
|
<a id="option_delete_mes"><img src="img/del_mes.png" width="20" height="20">Delete message</a>
|
||||||
|
@ -942,6 +942,7 @@ app.post("/importchat", urlencodedParser, function(request, response){
|
|||||||
new_chat[i]['name'] = ch_name;
|
new_chat[i]['name'] = ch_name;
|
||||||
}
|
}
|
||||||
new_chat[i]['is_user'] = item.src.is_human;
|
new_chat[i]['is_user'] = item.src.is_human;
|
||||||
|
new_chat[i]['is_name'] = true;
|
||||||
new_chat[i]['send_date'] = Date.now();
|
new_chat[i]['send_date'] = Date.now();
|
||||||
new_chat[i]['mes'] = item.text;
|
new_chat[i]['mes'] = item.text;
|
||||||
i++;
|
i++;
|
||||||
|
Reference in New Issue
Block a user