Fix formatting

This commit is contained in:
Cohee 2024-02-29 11:50:41 +02:00
parent 8981346360
commit 3d84ae026d
2 changed files with 4 additions and 5 deletions

View File

@ -8376,7 +8376,7 @@ jQuery(async function () {
//Fix it; New chat doesn't create while open create character menu
await clearChat();
chat.length = 0;
chat_file_for_del = getCurrentChatDetails().sessionName
const isDelChatCheckbox = document.getElementById('del_chat_checkbox').checked
@ -8770,15 +8770,14 @@ jQuery(async function () {
else if (id == 'option_start_new_chat') {
if ((selected_group || this_chid !== undefined) && !is_send_press) {
popup_type = 'new_chat';
callPopup(`
<h3>Start new chat?</h3><br>
<label for="del_chat_checkbox" class="checkbox_label justifyCenter"
<label for="del_chat_checkbox" class="checkbox_label justifyCenter"
title="If necessary, you can later restore this chat file from the /backups folder">
<input type="checkbox" id="del_chat_checkbox" />
<span>Also delete the current chat file</span>
</label><br>
`);
`, 'new_chat', '');
}
}

View File

@ -1622,7 +1622,7 @@ export async function deleteGroupChat(groupId, chatId) {
if (response.ok) {
if (group.chats.length) {
await openGroupChat(groupId, group.chats[group.chats.length-1]);
await openGroupChat(groupId, group.chats[group.chats.length - 1]);
} else {
await createNewGroupChat(groupId);
}