#733 Reload selected chat instead of inserting the first one in array

This commit is contained in:
Cohee
2023-07-18 18:28:51 +03:00
parent 547b275768
commit 623675d940
2 changed files with 2 additions and 4 deletions

View File

@@ -15,7 +15,6 @@ import {
printCharacters, printCharacters,
name1, name1,
name2, name2,
replaceCurrentChat,
setCharacterId, setCharacterId,
setEditedMessageId setEditedMessageId
} from "../script.js"; } from "../script.js";
@@ -1177,7 +1176,7 @@ function doRandomChat() {
resetSelectedGroup(); resetSelectedGroup();
setCharacterId(Math.floor(Math.random() * characters.length)); setCharacterId(Math.floor(Math.random() * characters.length));
setTimeout(() => { setTimeout(() => {
replaceCurrentChat(); reloadCurrentChat();
}, 1); }, 1);
} }

View File

@@ -17,7 +17,6 @@ import {
comment_avatar, comment_avatar,
system_avatar, system_avatar,
system_message_types, system_message_types,
replaceCurrentChat,
setCharacterId, setCharacterId,
generateQuietPrompt, generateQuietPrompt,
reloadCurrentChat, reloadCurrentChat,
@@ -203,7 +202,7 @@ function openChat(id) {
resetSelectedGroup(); resetSelectedGroup();
setCharacterId(id); setCharacterId(id);
setTimeout(() => { setTimeout(() => {
replaceCurrentChat(); reloadCurrentChat();
}, 1); }, 1);
} }