@1.2.5 CAI Import chat fix

This commit is contained in:
Ash
2023-01-28 15:42:40 +04:00
parent 4591056e38
commit e23a0d2a93
2 changed files with 2 additions and 1 deletions

View File

@ -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>

View File

@ -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++;