back to parent chat speed up by not checking for file and if there is an error or no file then send a warning.

This commit is contained in:
I
2025-06-18 02:56:18 -05:00
committed by GitHub
parent e657b61df7
commit fa38543b1a
3 changed files with 18 additions and 11 deletions
+4 -10
View File
@@ -238,17 +238,11 @@ export function updateBookmarkDisplay(mes, newBookmarkLink = null) {
async function backToMainChat() {
const mainChatName = getMainChatName();
const allChats = await getExistingChatNames();
if (allChats.includes(mainChatName)) {
if (selected_group) {
await openGroupChat(selected_group, mainChatName);
} else {
await openCharacterChat(mainChatName);
}
return mainChatName;
if (selected_group) {
await openGroupChat(selected_group, mainChatName);
} else {
await openCharacterChat(mainChatName);
}
return null;
}